2024-09-24 00:54:39,580 [ 215937 ] INFO : ClickHouse root is not set. Will use /home/ubuntu/_work/_temp/test/git-repo-copy (runner:42, check_args_and_update_paths) 2024-09-24 00:54:39,580 [ 215937 ] INFO : Cases dir is not set. Will use /home/ubuntu/_work/_temp/test/git-repo-copy/tests/integration (runner:90, check_args_and_update_paths) 2024-09-24 00:54:39,580 [ 215937 ] INFO : src dir is not set. Will use /home/ubuntu/_work/_temp/test/git-repo-copy/src (runner:97, check_args_and_update_paths) 2024-09-24 00:54:39,580 [ 215937 ] INFO : base_configs_dir: /home/ubuntu/_work/_temp/test/git-repo-copy/programs/server, binary: /home/ubuntu/_work/_temp/test/build/clickhouse, cases_dir: /home/ubuntu/_work/_temp/test/git-repo-copy/tests/integration (runner:99, check_args_and_update_paths) 2024-09-24 00:54:39,580 [ 215937 ] INFO : Unknown image altinityinfra/dotnet-client (runner:357, ) Running pytest container as: 'docker run --rm --name clickhouse_integration_tests_jppsc5 --privileged --dns-search='.' --volume=/home/ubuntu/_work/_temp/test/build/clickhouse-odbc-bridge:/clickhouse-odbc-bridge --volume=/home/ubuntu/_work/_temp/test/build/clickhouse:/clickhouse --volume=/home/ubuntu/_work/_temp/test/build/clickhouse-library-bridge:/clickhouse-library-bridge --volume=/home/ubuntu/_work/_temp/test/git-repo-copy/programs/server:/clickhouse-config --volume=/home/ubuntu/_work/_temp/test/git-repo-copy/tests/integration:/ClickHouse/tests/integration --volume=/home/ubuntu/_work/_temp/test/git-repo-copy/src/Server/grpc_protos:/ClickHouse/src/Server/grpc_protos --volume=/run:/run/host:ro --mount type=bind,source=/home/ubuntu/_work/_temp/test/dockerd_volume_dir,target=/var/lib/docker -e DOCKER_HELPER_TAG=0-9992f5eba3591142ff413d31cb83a7bf4f0e2553 -e DOCKER_BASE_TAG=0-9992f5eba3591142ff413d31cb83a7bf4f0e2553 -e DOCKER_KERBERIZED_HADOOP_TAG=0-9992f5eba3591142ff413d31cb83a7bf4f0e2553 -e DOCKER_KERBEROS_KDC_TAG=0-9992f5eba3591142ff413d31cb83a7bf4f0e2553 -e DOCKER_MYSQL_GOLANG_CLIENT_TAG=0-9992f5eba3591142ff413d31cb83a7bf4f0e2553 -e DOCKER_MYSQL_JAVA_CLIENT_TAG=0-9992f5eba3591142ff413d31cb83a7bf4f0e2553 -e DOCKER_MYSQL_JS_CLIENT_TAG=0-9992f5eba3591142ff413d31cb83a7bf4f0e2553 -e DOCKER_MYSQL_PHP_CLIENT_TAG=0-9992f5eba3591142ff413d31cb83a7bf4f0e2553 -e DOCKER_NGINX_DAV_TAG=0-9992f5eba3591142ff413d31cb83a7bf4f0e2553 -e DOCKER_POSTGRESQL_JAVA_CLIENT_TAG=0-9992f5eba3591142ff413d31cb83a7bf4f0e2553 -e DOCKER_CLIENT_TIMEOUT=300 -e COMPOSE_HTTP_TIMEOUT=600 -e PYTHONUNBUFFERED=1 -e PYTEST_ADDOPTS="--dist=loadfile -n 10 -rfEps --run-id=0 --color=no --durations=0 'test_storage_s3/test.py::test_multipart[positive]' test_storage_s3/test.py::test_overwrite test_storage_s3/test.py::test_parallel_reading_with_memory_limit test_storage_s3/test.py::test_partition_by test_storage_s3/test.py::test_partition_by_const_column test_storage_s3/test.py::test_partition_by_string_column test_storage_s3/test.py::test_predefined_connection_configuration 'test_storage_s3/test.py::test_put[auth_positive]' 'test_storage_s3/test.py::test_put[auto]' 'test_storage_s3/test.py::test_put[brotli]' 'test_storage_s3/test.py::test_put[deflate]' 'test_storage_s3/test.py::test_put[gzip]' 'test_storage_s3/test.py::test_put[positive]' 'test_storage_s3/test.py::test_put[xz]' 'test_storage_s3/test.py::test_put[zstd]' 'test_storage_s3/test.py::test_put_csv[auth_positive]' 'test_storage_s3/test.py::test_put_csv[negative]' 'test_storage_s3/test.py::test_put_csv[positive]' test_storage_s3/test.py::test_put_get_with_globs test_storage_s3/test.py::test_put_get_with_redirect test_storage_s3/test.py::test_put_with_zero_redirect test_storage_s3/test.py::test_read_subcolumns test_storage_s3/test.py::test_remote_host_filter test_storage_s3/test.py::test_s3_glob_scheherazade test_storage_s3/test.py::test_s3_list_objects_failure test_storage_s3/test.py::test_s3_schema_inference test_storage_s3/test.py::test_schema_inference_cache test_storage_s3/test.py::test_schema_inference_from_globs test_storage_s3/test.py::test_seekable_formats test_storage_s3/test.py::test_seekable_formats_url test_storage_s3/test.py::test_select_columns test_storage_s3/test.py::test_signatures test_storage_s3/test.py::test_skip_empty_files 'test_storage_s3/test.py::test_storage_s3_get_gzip[bin]' 'test_storage_s3/test.py::test_storage_s3_get_gzip[gz]' test_storage_s3/test.py::test_storage_s3_get_unstable 'test_storage_s3/test.py::test_storage_s3_put_gzip[bin]' 'test_storage_s3/test.py::test_storage_s3_put_gzip[gz]' test_storage_s3/test.py::test_storage_s3_put_uncompressed test_storage_s3/test.py::test_truncate_table test_storage_s3/test.py::test_wrong_format_usage test_storage_s3/test.py::test_wrong_s3_syntax test_system_logs_comment/test.py::test_system_logs_comment test_system_start_stop_listen/test.py::test_all_protocols test_system_start_stop_listen/test.py::test_custom_protocols test_system_start_stop_listen/test.py::test_default_protocols test_system_start_stop_listen/test.py::test_except test_tcp_handler_interserver_listen_host/test_case.py::test_request_to_node_with_interserver_listen_host test_tcp_handler_interserver_listen_host/test_case.py::test_request_to_node_without_interserver_listen_host test_temporary_data/test.py::test_tmp_data_no_leftovers test_tmp_policy/test.py::test_disk_selection 'test_ttl_move/test.py::test_alter_multiple_ttls[negative]' 'test_ttl_move/test.py::test_alter_multiple_ttls[positive]' 'test_ttl_move/test.py::test_alter_multiple_ttls[replicated_negative]' 'test_ttl_move/test.py::test_alter_multiple_ttls[replicated_positive]' 'test_ttl_move/test.py::test_alter_with_merge_work[mt]' 'test_ttl_move/test.py::test_alter_with_merge_work[mt_work]' 'test_ttl_move/test.py::test_alter_with_merge_work[replicated]' 'test_ttl_move/test.py::test_alter_with_merge_work[replicated_work]' 'test_ttl_move/test.py::test_concurrent_alter_with_ttl_move[mt]' 'test_ttl_move/test.py::test_concurrent_alter_with_ttl_move[replicated_mt]' 'test_ttl_move/test.py::test_disabled_ttl_move_on_insert[disk]' 'test_ttl_move/test.py::test_disabled_ttl_move_on_insert[replicated_disk]' 'test_ttl_move/test.py::test_disabled_ttl_move_on_insert[replicated_volume]' 'test_ttl_move/test.py::test_disabled_ttl_move_on_insert[volume]' 'test_ttl_move/test.py::test_inserts_to_disk_work[mt_test_inserts_to_disk_do_not_work]' 'test_ttl_move/test.py::test_inserts_to_disk_work[mt_test_inserts_to_disk_work_1]' 'test_ttl_move/test.py::test_inserts_to_disk_work[replicated_mt_test_inserts_to_disk_do_not_work]' 'test_ttl_move/test.py::test_inserts_to_disk_work[replicated_mt_test_inserts_to_disk_work_1]' 'test_ttl_move/test.py::test_inserts_to_volume_work[mt_test_inserts_to_volume_do_not_work]' 'test_ttl_move/test.py::test_inserts_to_volume_work[mt_test_inserts_to_volume_work]' 'test_ttl_move/test.py::test_inserts_to_volume_work[replicated_mt_test_inserts_to_volume_do_not_work]' 'test_ttl_move/test.py::test_inserts_to_volume_work[replicated_mt_test_inserts_to_volume_work]' 'test_ttl_move/test.py::test_materialize_ttl_in_partition[mt]' 'test_ttl_move/test.py::test_materialize_ttl_in_partition[replicated]' 'test_ttl_move/test.py::test_merges_to_disk_work[mt_test_merges_to_disk_do_not_work0]' 'test_ttl_move/test.py::test_merges_to_disk_work[mt_test_merges_to_disk_do_not_work1]' 'test_ttl_move/test.py::test_merges_to_disk_work[mt_test_merges_to_disk_work]' 'test_ttl_move/test.py::test_merges_to_disk_work[replicated_mt_test_merges_to_disk_work]' 'test_ttl_move/test.py::test_merges_with_full_disk_work[mt_test_merges_with_full_disk_work]' 'test_ttl_move/test.py::test_merges_with_full_disk_work[replicated_mt_test_merges_with_full_disk_work]' 'test_ttl_move/test.py::test_moves_after_merges_work[mt_test_moves_after_merges_do_not_work]' 'test_ttl_move/test.py::test_moves_after_merges_work[mt_test_moves_after_merges_work]' 'test_ttl_move/test.py::test_moves_after_merges_work[replicated_mt_test_moves_after_merges_do_not_work]' 'test_ttl_move/test.py::test_moves_after_merges_work[replicated_mt_test_moves_after_merges_work]' 'test_ttl_move/test.py::test_moves_to_disk_eventually_work[mt_test_moves_to_disk_eventually_work]' 'test_ttl_move/test.py::test_moves_to_disk_eventually_work[replicated_mt_test_moves_to_disk_eventually_work]' 'test_ttl_move/test.py::test_moves_to_disk_work[mt_test_moves_to_disk_do_not_work]' 'test_ttl_move/test.py::test_moves_to_disk_work[mt_test_moves_to_disk_work]' 'test_ttl_move/test.py::test_moves_to_disk_work[replicated_mt_test_moves_to_disk_do_not_work]' 'test_ttl_move/test.py::test_moves_to_disk_work[replicated_mt_test_moves_to_disk_work]' 'test_ttl_move/test.py::test_moves_to_volume_work[mt_test_moves_to_volume_work]' 'test_ttl_move/test.py::test_moves_to_volume_work[replicated_mt_test_moves_to_volume_work]' 'test_ttl_move/test.py::test_moves_work_after_storage_policy_change[mt_test_moves_work_after_storage_policy_change]' 'test_ttl_move/test.py::test_moves_work_after_storage_policy_change[replicated_mt_test_moves_work_after_storage_policy_change]' test_ttl_move/test.py::test_replicated_download_ttl_info 'test_ttl_move/test.py::test_rule_with_invalid_destination[case0]' 'test_ttl_move/test.py::test_rule_with_invalid_destination[case1]' 'test_ttl_move/test.py::test_rule_with_invalid_destination[case2]' 'test_ttl_move/test.py::test_rule_with_invalid_destination[case3]' -vvv" altinityinfra/integration-tests-runner:0-9992f5eba3591142ff413d31cb83a7bf4f0e2553 '. Start tests ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-7.4.4, pluggy-1.5.0 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /ClickHouse/tests/integration configfile: pytest.ini plugins: timeout-2.2.0, repeat-0.9.3, order-1.0.1, xdist-3.5.0, random-0.2 timeout: 900.0s timeout method: signal timeout func_only: False created: 10/10 workers 10 workers [100 items] scheduling tests via LoadFileScheduling test_system_start_stop_listen/test.py::test_all_protocols test_storage_s3/test.py::test_multipart[positive] test_tcp_handler_interserver_listen_host/test_case.py::test_request_to_node_with_interserver_listen_host test_tmp_policy/test.py::test_disk_selection test_ttl_move/test.py::test_alter_multiple_ttls[negative] test_temporary_data/test.py::test_tmp_data_no_leftovers test_system_logs_comment/test.py::test_system_logs_comment [gw3] [ 1%] PASSED test_tcp_handler_interserver_listen_host/test_case.py::test_request_to_node_with_interserver_listen_host test_tcp_handler_interserver_listen_host/test_case.py::test_request_to_node_without_interserver_listen_host [gw3] [ 2%] PASSED test_tcp_handler_interserver_listen_host/test_case.py::test_request_to_node_without_interserver_listen_host [gw4] [ 3%] PASSED test_system_logs_comment/test.py::test_system_logs_comment [gw5] [ 4%] PASSED test_temporary_data/test.py::test_tmp_data_no_leftovers [gw1] [ 5%] PASSED test_storage_s3/test.py::test_multipart[positive] test_storage_s3/test.py::test_overwrite [gw1] [ 6%] PASSED test_storage_s3/test.py::test_overwrite test_storage_s3/test.py::test_parallel_reading_with_memory_limit [gw6] [ 7%] PASSED test_tmp_policy/test.py::test_disk_selection [gw0] [ 8%] PASSED test_ttl_move/test.py::test_alter_multiple_ttls[negative] test_ttl_move/test.py::test_alter_multiple_ttls[positive] [gw1] [ 9%] PASSED test_storage_s3/test.py::test_parallel_reading_with_memory_limit test_storage_s3/test.py::test_partition_by [gw1] [ 10%] PASSED test_storage_s3/test.py::test_partition_by test_storage_s3/test.py::test_partition_by_const_column [gw1] [ 11%] PASSED test_storage_s3/test.py::test_partition_by_const_column test_storage_s3/test.py::test_partition_by_string_column [gw1] [ 12%] PASSED test_storage_s3/test.py::test_partition_by_string_column test_storage_s3/test.py::test_predefined_connection_configuration [gw2] [ 13%] PASSED test_system_start_stop_listen/test.py::test_all_protocols test_system_start_stop_listen/test.py::test_custom_protocols [gw1] [ 14%] PASSED test_storage_s3/test.py::test_predefined_connection_configuration test_storage_s3/test.py::test_put[auth_positive] [gw1] [ 15%] PASSED test_storage_s3/test.py::test_put[auth_positive] test_storage_s3/test.py::test_put[auto] [gw1] [ 16%] PASSED test_storage_s3/test.py::test_put[auto] test_storage_s3/test.py::test_put[brotli] [gw1] [ 17%] PASSED test_storage_s3/test.py::test_put[brotli] test_storage_s3/test.py::test_put[deflate] [gw1] [ 18%] PASSED test_storage_s3/test.py::test_put[deflate] test_storage_s3/test.py::test_put[gzip] [gw1] [ 19%] PASSED test_storage_s3/test.py::test_put[gzip] test_storage_s3/test.py::test_put[positive] [gw1] [ 20%] PASSED test_storage_s3/test.py::test_put[positive] test_storage_s3/test.py::test_put[xz] [gw1] [ 21%] PASSED test_storage_s3/test.py::test_put[xz] test_storage_s3/test.py::test_put[zstd] [gw1] [ 22%] PASSED test_storage_s3/test.py::test_put[zstd] test_storage_s3/test.py::test_put_csv[auth_positive] [gw1] [ 23%] PASSED test_storage_s3/test.py::test_put_csv[auth_positive] test_storage_s3/test.py::test_put_csv[negative] [gw1] [ 24%] PASSED test_storage_s3/test.py::test_put_csv[negative] test_storage_s3/test.py::test_put_csv[positive] [gw2] [ 25%] PASSED test_system_start_stop_listen/test.py::test_custom_protocols test_system_start_stop_listen/test.py::test_default_protocols [gw1] [ 26%] PASSED test_storage_s3/test.py::test_put_csv[positive] test_storage_s3/test.py::test_put_get_with_globs [gw2] [ 27%] PASSED test_system_start_stop_listen/test.py::test_default_protocols test_system_start_stop_listen/test.py::test_except [gw0] [ 28%] PASSED test_ttl_move/test.py::test_alter_multiple_ttls[positive] test_ttl_move/test.py::test_alter_multiple_ttls[replicated_negative] [gw2] [ 29%] PASSED test_system_start_stop_listen/test.py::test_except [gw1] [ 30%] PASSED test_storage_s3/test.py::test_put_get_with_globs test_storage_s3/test.py::test_put_get_with_redirect [gw0] [ 31%] PASSED test_ttl_move/test.py::test_alter_multiple_ttls[replicated_negative] test_ttl_move/test.py::test_alter_multiple_ttls[replicated_positive] [gw1] [ 32%] PASSED test_storage_s3/test.py::test_put_get_with_redirect test_storage_s3/test.py::test_put_with_zero_redirect [gw2] [ 32%] ERROR test_system_start_stop_listen/test.py::test_except [gw0] [ 33%] PASSED test_ttl_move/test.py::test_alter_multiple_ttls[replicated_positive] test_ttl_move/test.py::test_alter_with_merge_work[mt] [gw1] [ 34%] PASSED test_storage_s3/test.py::test_put_with_zero_redirect test_storage_s3/test.py::test_read_subcolumns [gw1] [ 35%] PASSED test_storage_s3/test.py::test_read_subcolumns test_storage_s3/test.py::test_remote_host_filter [gw1] [ 36%] PASSED test_storage_s3/test.py::test_remote_host_filter test_storage_s3/test.py::test_s3_glob_scheherazade [gw0] [ 37%] PASSED test_ttl_move/test.py::test_alter_with_merge_work[mt] test_ttl_move/test.py::test_alter_with_merge_work[mt_work] [gw0] [ 38%] PASSED test_ttl_move/test.py::test_alter_with_merge_work[mt_work] test_ttl_move/test.py::test_alter_with_merge_work[replicated] [gw1] [ 39%] PASSED test_storage_s3/test.py::test_s3_glob_scheherazade test_storage_s3/test.py::test_s3_list_objects_failure [gw0] [ 40%] PASSED test_ttl_move/test.py::test_alter_with_merge_work[replicated] test_ttl_move/test.py::test_alter_with_merge_work[replicated_work] [gw1] [ 41%] PASSED test_storage_s3/test.py::test_s3_list_objects_failure test_storage_s3/test.py::test_s3_schema_inference [gw0] [ 42%] PASSED test_ttl_move/test.py::test_alter_with_merge_work[replicated_work] test_ttl_move/test.py::test_concurrent_alter_with_ttl_move[mt] [gw1] [ 43%] PASSED test_storage_s3/test.py::test_s3_schema_inference test_storage_s3/test.py::test_schema_inference_cache [gw0] [ 44%] PASSED test_ttl_move/test.py::test_concurrent_alter_with_ttl_move[mt] test_ttl_move/test.py::test_concurrent_alter_with_ttl_move[replicated_mt] [gw0] [ 45%] PASSED test_ttl_move/test.py::test_concurrent_alter_with_ttl_move[replicated_mt] test_ttl_move/test.py::test_disabled_ttl_move_on_insert[disk] [gw0] [ 46%] PASSED test_ttl_move/test.py::test_disabled_ttl_move_on_insert[disk] test_ttl_move/test.py::test_disabled_ttl_move_on_insert[replicated_disk] [gw0] [ 47%] PASSED test_ttl_move/test.py::test_disabled_ttl_move_on_insert[replicated_disk] test_ttl_move/test.py::test_disabled_ttl_move_on_insert[replicated_volume] [gw0] [ 48%] PASSED test_ttl_move/test.py::test_disabled_ttl_move_on_insert[replicated_volume] test_ttl_move/test.py::test_disabled_ttl_move_on_insert[volume] [gw0] [ 49%] PASSED test_ttl_move/test.py::test_disabled_ttl_move_on_insert[volume] test_ttl_move/test.py::test_inserts_to_disk_work[mt_test_inserts_to_disk_do_not_work] [gw0] [ 50%] PASSED test_ttl_move/test.py::test_inserts_to_disk_work[mt_test_inserts_to_disk_do_not_work] test_ttl_move/test.py::test_inserts_to_disk_work[mt_test_inserts_to_disk_work_1] [gw0] [ 51%] PASSED test_ttl_move/test.py::test_inserts_to_disk_work[mt_test_inserts_to_disk_work_1] test_ttl_move/test.py::test_inserts_to_disk_work[replicated_mt_test_inserts_to_disk_do_not_work] [gw0] [ 52%] PASSED test_ttl_move/test.py::test_inserts_to_disk_work[replicated_mt_test_inserts_to_disk_do_not_work] test_ttl_move/test.py::test_inserts_to_disk_work[replicated_mt_test_inserts_to_disk_work_1] [gw0] [ 53%] PASSED test_ttl_move/test.py::test_inserts_to_disk_work[replicated_mt_test_inserts_to_disk_work_1] test_ttl_move/test.py::test_inserts_to_volume_work[mt_test_inserts_to_volume_do_not_work] [gw0] [ 54%] PASSED test_ttl_move/test.py::test_inserts_to_volume_work[mt_test_inserts_to_volume_do_not_work] test_ttl_move/test.py::test_inserts_to_volume_work[mt_test_inserts_to_volume_work] [gw0] [ 55%] PASSED test_ttl_move/test.py::test_inserts_to_volume_work[mt_test_inserts_to_volume_work] test_ttl_move/test.py::test_inserts_to_volume_work[replicated_mt_test_inserts_to_volume_do_not_work] [gw0] [ 56%] PASSED test_ttl_move/test.py::test_inserts_to_volume_work[replicated_mt_test_inserts_to_volume_do_not_work] test_ttl_move/test.py::test_inserts_to_volume_work[replicated_mt_test_inserts_to_volume_work] [gw0] [ 57%] PASSED test_ttl_move/test.py::test_inserts_to_volume_work[replicated_mt_test_inserts_to_volume_work] test_ttl_move/test.py::test_materialize_ttl_in_partition[mt] [gw0] [ 58%] PASSED test_ttl_move/test.py::test_materialize_ttl_in_partition[mt] test_ttl_move/test.py::test_materialize_ttl_in_partition[replicated] [gw0] [ 59%] PASSED test_ttl_move/test.py::test_materialize_ttl_in_partition[replicated] test_ttl_move/test.py::test_merges_to_disk_work[mt_test_merges_to_disk_do_not_work0] [gw1] [ 60%] PASSED test_storage_s3/test.py::test_schema_inference_cache test_storage_s3/test.py::test_schema_inference_from_globs [gw1] [ 61%] PASSED test_storage_s3/test.py::test_schema_inference_from_globs test_storage_s3/test.py::test_seekable_formats [gw0] [ 62%] PASSED test_ttl_move/test.py::test_merges_to_disk_work[mt_test_merges_to_disk_do_not_work0] test_ttl_move/test.py::test_merges_to_disk_work[mt_test_merges_to_disk_do_not_work1] [gw1] [ 63%] PASSED test_storage_s3/test.py::test_seekable_formats test_storage_s3/test.py::test_seekable_formats_url [gw1] [ 64%] PASSED test_storage_s3/test.py::test_seekable_formats_url test_storage_s3/test.py::test_select_columns [gw0] [ 65%] PASSED test_ttl_move/test.py::test_merges_to_disk_work[mt_test_merges_to_disk_do_not_work1] test_ttl_move/test.py::test_merges_to_disk_work[mt_test_merges_to_disk_work] [gw1] [ 66%] PASSED test_storage_s3/test.py::test_select_columns test_storage_s3/test.py::test_signatures [gw1] [ 67%] PASSED test_storage_s3/test.py::test_signatures test_storage_s3/test.py::test_skip_empty_files [gw1] [ 68%] PASSED test_storage_s3/test.py::test_skip_empty_files test_storage_s3/test.py::test_storage_s3_get_gzip[bin] [gw1] [ 69%] PASSED test_storage_s3/test.py::test_storage_s3_get_gzip[bin] test_storage_s3/test.py::test_storage_s3_get_gzip[gz] [gw1] [ 70%] PASSED test_storage_s3/test.py::test_storage_s3_get_gzip[gz] test_storage_s3/test.py::test_storage_s3_get_unstable [gw0] [ 71%] PASSED test_ttl_move/test.py::test_merges_to_disk_work[mt_test_merges_to_disk_work] test_ttl_move/test.py::test_merges_to_disk_work[replicated_mt_test_merges_to_disk_work] [gw1] [ 72%] PASSED test_storage_s3/test.py::test_storage_s3_get_unstable test_storage_s3/test.py::test_storage_s3_put_gzip[bin] [gw1] [ 73%] PASSED test_storage_s3/test.py::test_storage_s3_put_gzip[bin] test_storage_s3/test.py::test_storage_s3_put_gzip[gz] [gw1] [ 74%] PASSED test_storage_s3/test.py::test_storage_s3_put_gzip[gz] test_storage_s3/test.py::test_storage_s3_put_uncompressed [gw1] [ 75%] PASSED test_storage_s3/test.py::test_storage_s3_put_uncompressed test_storage_s3/test.py::test_truncate_table [gw1] [ 76%] PASSED test_storage_s3/test.py::test_truncate_table test_storage_s3/test.py::test_wrong_format_usage [gw1] [ 77%] PASSED test_storage_s3/test.py::test_wrong_format_usage test_storage_s3/test.py::test_wrong_s3_syntax [gw1] [ 78%] PASSED test_storage_s3/test.py::test_wrong_s3_syntax [gw0] [ 79%] PASSED test_ttl_move/test.py::test_merges_to_disk_work[replicated_mt_test_merges_to_disk_work] test_ttl_move/test.py::test_merges_with_full_disk_work[mt_test_merges_with_full_disk_work] [gw0] [ 80%] PASSED test_ttl_move/test.py::test_merges_with_full_disk_work[mt_test_merges_with_full_disk_work] test_ttl_move/test.py::test_merges_with_full_disk_work[replicated_mt_test_merges_with_full_disk_work] [gw0] [ 81%] PASSED test_ttl_move/test.py::test_merges_with_full_disk_work[replicated_mt_test_merges_with_full_disk_work] test_ttl_move/test.py::test_moves_after_merges_work[mt_test_moves_after_merges_do_not_work] [gw0] [ 82%] PASSED test_ttl_move/test.py::test_moves_after_merges_work[mt_test_moves_after_merges_do_not_work] test_ttl_move/test.py::test_moves_after_merges_work[mt_test_moves_after_merges_work] [gw0] [ 83%] PASSED test_ttl_move/test.py::test_moves_after_merges_work[mt_test_moves_after_merges_work] test_ttl_move/test.py::test_moves_after_merges_work[replicated_mt_test_moves_after_merges_do_not_work] [gw0] [ 84%] PASSED test_ttl_move/test.py::test_moves_after_merges_work[replicated_mt_test_moves_after_merges_do_not_work] test_ttl_move/test.py::test_moves_after_merges_work[replicated_mt_test_moves_after_merges_work] [gw0] [ 85%] PASSED test_ttl_move/test.py::test_moves_after_merges_work[replicated_mt_test_moves_after_merges_work] test_ttl_move/test.py::test_moves_to_disk_eventually_work[mt_test_moves_to_disk_eventually_work] [gw0] [ 86%] PASSED test_ttl_move/test.py::test_moves_to_disk_eventually_work[mt_test_moves_to_disk_eventually_work] test_ttl_move/test.py::test_moves_to_disk_eventually_work[replicated_mt_test_moves_to_disk_eventually_work] [gw0] [ 87%] PASSED test_ttl_move/test.py::test_moves_to_disk_eventually_work[replicated_mt_test_moves_to_disk_eventually_work] test_ttl_move/test.py::test_moves_to_disk_work[mt_test_moves_to_disk_do_not_work] [gw0] [ 88%] PASSED test_ttl_move/test.py::test_moves_to_disk_work[mt_test_moves_to_disk_do_not_work] test_ttl_move/test.py::test_moves_to_disk_work[mt_test_moves_to_disk_work] [gw0] [ 89%] PASSED test_ttl_move/test.py::test_moves_to_disk_work[mt_test_moves_to_disk_work] test_ttl_move/test.py::test_moves_to_disk_work[replicated_mt_test_moves_to_disk_do_not_work] [gw0] [ 90%] PASSED test_ttl_move/test.py::test_moves_to_disk_work[replicated_mt_test_moves_to_disk_do_not_work] test_ttl_move/test.py::test_moves_to_disk_work[replicated_mt_test_moves_to_disk_work] [gw0] [ 91%] PASSED test_ttl_move/test.py::test_moves_to_disk_work[replicated_mt_test_moves_to_disk_work] test_ttl_move/test.py::test_moves_to_volume_work[mt_test_moves_to_volume_work] [gw0] [ 92%] PASSED test_ttl_move/test.py::test_moves_to_volume_work[mt_test_moves_to_volume_work] test_ttl_move/test.py::test_moves_to_volume_work[replicated_mt_test_moves_to_volume_work] [gw0] [ 93%] PASSED test_ttl_move/test.py::test_moves_to_volume_work[replicated_mt_test_moves_to_volume_work] test_ttl_move/test.py::test_moves_work_after_storage_policy_change[mt_test_moves_work_after_storage_policy_change] [gw0] [ 94%] PASSED test_ttl_move/test.py::test_moves_work_after_storage_policy_change[mt_test_moves_work_after_storage_policy_change] test_ttl_move/test.py::test_moves_work_after_storage_policy_change[replicated_mt_test_moves_work_after_storage_policy_change] [gw0] [ 95%] PASSED test_ttl_move/test.py::test_moves_work_after_storage_policy_change[replicated_mt_test_moves_work_after_storage_policy_change] test_ttl_move/test.py::test_replicated_download_ttl_info [gw0] [ 96%] PASSED test_ttl_move/test.py::test_replicated_download_ttl_info test_ttl_move/test.py::test_rule_with_invalid_destination[case0] [gw0] [ 97%] PASSED test_ttl_move/test.py::test_rule_with_invalid_destination[case0] test_ttl_move/test.py::test_rule_with_invalid_destination[case1] [gw0] [ 98%] PASSED test_ttl_move/test.py::test_rule_with_invalid_destination[case1] test_ttl_move/test.py::test_rule_with_invalid_destination[case2] [gw0] [ 99%] PASSED test_ttl_move/test.py::test_rule_with_invalid_destination[case2] test_ttl_move/test.py::test_rule_with_invalid_destination[case3] [gw0] [100%] PASSED test_ttl_move/test.py::test_rule_with_invalid_destination[case3] ==================================== ERRORS ==================================== _______________________ ERROR at teardown of test_except _______________________ [gw2] linux -- Python 3.10.12 /usr/bin/python3 @pytest.fixture(scope="module") def started_cluster(): try: cluster.start() yield cluster finally: > cluster.shutdown() test_system_start_stop_listen/test.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , kill = True ignore_fatal = True def shutdown(self, kill=True, ignore_fatal=True): sanitizer_assert_instance = None fatal_log = None if self.up_called: with open(self.docker_logs_path, "w+") as f: try: subprocess.check_call( # STYLE_CHECK_ALLOW_SUBPROCESS_CHECK_CALL self.base_cmd + ["logs"], stdout=f ) except Exception as e: logging.debug("Unable to get logs from docker.") f.seek(0) for line in f: if SANITIZER_SIGN in line: sanitizer_assert_instance = line.split("|")[0].strip() break if kill: try: run_and_check(self.base_cmd + ["stop", "--timeout", "20"]) except Exception as e: logging.debug( "Kill command failed during shutdown. {}".format(repr(e)) ) logging.debug("Trying to kill forcefully") run_and_check(self.base_cmd + ["kill"]) # Check server logs for Fatal messages and sanitizer failures. # NOTE: we cannot do this via docker since in case of Fatal message container may already die. for name, instance in self.instances.items(): if instance.contains_in_log( SANITIZER_SIGN, from_host=True, filename="stderr.log" ): sanitizer_assert_instance = instance.grep_in_log( SANITIZER_SIGN, from_host=True, filename="stderr.log", after=1000, ) logging.error( "Sanitizer in instance %s log %s", name, sanitizer_assert_instance, ) if not ignore_fatal and instance.contains_in_log( "Fatal", from_host=True ): fatal_log = instance.grep_in_log("Fatal", from_host=True) if "Child process was terminated by signal 9 (KILL)" in fatal_log: fatal_log = None continue logging.error("Crash in instance %s fatal log %s", name, fatal_log) try: subprocess_check_call(self.base_cmd + ["down", "--volumes"]) except Exception as e: logging.debug( "Down + remove orphans failed during shutdown. {}".format(repr(e)) ) else: logging.warning( "docker-compose up was not called. Trying to export docker.log for running containers" ) self.cleanup() self.is_up = False self.docker_client = None for instance in list(self.instances.values()): instance.docker_client = None instance.ip_address = None instance.client = None if sanitizer_assert_instance is not None: > raise Exception( "Sanitizer assert found for instance {}".format( sanitizer_assert_instance ) ) E Exception: Sanitizer assert found for instance ================== E WARNING: ThreadSanitizer: data race (pid=1) E Write of size 8 at 0x7b540000eb18 by thread T2: E #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::basic_string, std::__1::allocator>::__move_assign[abi:v15000](std::__1::basic_string, std::__1::allocator>&, std::__1::integral_constant) build_docker/./contrib/llvm-project/libcxx/include/string:2547:16 (clickhouse+0xfaeaad7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::basic_string, std::__1::allocator>::operator=[abi:v15000](std::__1::basic_string, std::__1::allocator>&&) build_docker/./contrib/llvm-project/libcxx/include/string:2562:5 (clickhouse+0xfaeaad7) E #3 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeaad7) E #4 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) E #6 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) E #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) E #9 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) E #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) E #11 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) E #12 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) E #14 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) E #15 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #18 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #19 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #20 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #21 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #22 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #23 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #24 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Previous read of size 8 at 0x7b540000eb18 by thread T255 (mutexes: write M0): E #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::basic_string, std::__1::allocator>::basic_string(std::__1::basic_string, std::__1::allocator> const&) build_docker/./contrib/llvm-project/libcxx/include/string:2013:26 (clickhouse+0xfad7059) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:60 (clickhouse+0xfad7059) E #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7059) E #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7059) E #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7059) E #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7059) E #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) E #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) E #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) E #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) E #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) E #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) E #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) E #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) E #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) E #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) E #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) E #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) E #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) E E Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: E #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) E #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) E #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) E #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) E #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) E #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) E #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) E #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) E #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Mutex M0 (0x7ffd9bec1d88) created at: E #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) E #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) E #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T2 'TCPHandler' (tid=9, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) E #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) E #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) E #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) E #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in __tsan_memcpy E ================== E ================== E WARNING: ThreadSanitizer: data race (pid=1) E Write of size 1 at 0x7b540000ec1f by thread T2: E #0 std::__1::basic_string, std::__1::allocator>::__set_short_size[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/string:1570:37 (clickhouse+0xfaeaae0) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::basic_string, std::__1::allocator>::__move_assign[abi:v15000](std::__1::basic_string, std::__1::allocator>&, std::__1::integral_constant) build_docker/./contrib/llvm-project/libcxx/include/string:2551:11 (clickhouse+0xfaeaae0) E #2 std::__1::basic_string, std::__1::allocator>::operator=[abi:v15000](std::__1::basic_string, std::__1::allocator>&&) build_docker/./contrib/llvm-project/libcxx/include/string:2562:5 (clickhouse+0xfaeaae0) E #3 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeaae0) E #4 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) E #6 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) E #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) E #9 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) E #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) E #11 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) E #12 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) E #14 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) E #15 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #18 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #19 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #20 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #21 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #22 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #23 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #24 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Previous read of size 8 at 0x7b540000ec18 by thread T255 (mutexes: write M0): E #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::basic_string, std::__1::allocator>::basic_string(std::__1::basic_string, std::__1::allocator> const&) build_docker/./contrib/llvm-project/libcxx/include/string:2013:26 (clickhouse+0xfad7059) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:60 (clickhouse+0xfad7059) E #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7059) E #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7059) E #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7059) E #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7059) E #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) E #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) E #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) E #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) E #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) E #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) E #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) E #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) E #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) E #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) E #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) E #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) E #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) E E Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: E #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) E #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) E #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) E #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) E #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) E #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) E #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) E #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) E #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Mutex M0 (0x7ffd9bec1d88) created at: E #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) E #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) E #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T2 'TCPHandler' (tid=9, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) E #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) E #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) E #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) E #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/string:1570:37 in std::__1::basic_string, std::__1::allocator>::__set_short_size[abi:v15000](unsigned long) E ================== E ================== E WARNING: ThreadSanitizer: data race (pid=1) E Write of size 1 at 0x7b540000ec08 by thread T2: E #0 std::__1::char_traits::assign(char&, char const&) build_docker/./contrib/llvm-project/libcxx/include/__string/char_traits.h:198:73 (clickhouse+0xfaeaaed) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::basic_string, std::__1::allocator>::__move_assign[abi:v15000](std::__1::basic_string, std::__1::allocator>&, std::__1::integral_constant) build_docker/./contrib/llvm-project/libcxx/include/string:2552:5 (clickhouse+0xfaeaaed) E #2 std::__1::basic_string, std::__1::allocator>::operator=[abi:v15000](std::__1::basic_string, std::__1::allocator>&&) build_docker/./contrib/llvm-project/libcxx/include/string:2562:5 (clickhouse+0xfaeaaed) E #3 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeaaed) E #4 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) E #6 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) E #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) E #9 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) E #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) E #11 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) E #12 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) E #14 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) E #15 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #18 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #19 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #20 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #21 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #22 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #23 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #24 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Previous read of size 8 at 0x7b540000ec08 by thread T255 (mutexes: write M0): E #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::basic_string, std::__1::allocator>::basic_string(std::__1::basic_string, std::__1::allocator> const&) build_docker/./contrib/llvm-project/libcxx/include/string:2013:26 (clickhouse+0xfad7059) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:60 (clickhouse+0xfad7059) E #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7059) E #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7059) E #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7059) E #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7059) E #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) E #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) E #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) E #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) E #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) E #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) E #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) E #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) E #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) E #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) E #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) E #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) E #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) E E Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: E #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) E #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) E #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) E #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) E #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) E #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) E #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) E #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) E #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Mutex M0 (0x7ffd9bec1d88) created at: E #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) E #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) E #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T2 'TCPHandler' (tid=9, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) E #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) E #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) E #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) E #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__string/char_traits.h:198:73 in std::__1::char_traits::assign(char&, char const&) E ================== E ================== E WARNING: ThreadSanitizer: data race (pid=1) E Write of size 8 at 0x7b540000ec38 by thread T2: E #0 std::__1::unique_ptr>::release[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296:20 (clickhouse+0xfaeab70) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:15 (clickhouse+0xfaeab70) E #2 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab70) E #3 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) E #5 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) E #6 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) E #8 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) E #9 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) E #10 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) E #11 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) E #13 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) E #14 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #15 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #18 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #19 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #20 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #21 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #22 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #23 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Previous read of size 8 at 0x7b540000ec38 by thread T255 (mutexes: write M0): E #0 std::__1::unique_ptr>::operator->[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 (clickhouse+0xfad70f2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:44 (clickhouse+0xfad70f2) E #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad70f2) E #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad70f2) E #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad70f2) E #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad70f2) E #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad70f2) E #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) E #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) E #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) E #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) E #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) E #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) E #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) E #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) E #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) E #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) E #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) E #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) E #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) E E Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: E #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) E #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) E #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) E #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) E #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) E #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) E #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) E #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) E #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Mutex M0 (0x7ffd9bec1d88) created at: E #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) E #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) E #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T2 'TCPHandler' (tid=9, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) E #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) E #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) E #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) E #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296:20 in std::__1::unique_ptr>::release[abi:v15000]() E ================== E ================== E WARNING: ThreadSanitizer: data race (pid=1) E Write of size 8 at 0x7b540000eb48 by thread T2: E #0 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 (clickhouse+0xfaeab84) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab84) E #2 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab84) E #3 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) E #5 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) E #6 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) E #8 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) E #9 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) E #10 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) E #11 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) E #13 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) E #14 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #15 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #18 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #19 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #20 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #21 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #22 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #23 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Previous read of size 8 at 0x7b540000eb48 by thread T255 (mutexes: write M0): E #0 std::__1::unique_ptr>::operator->[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 (clickhouse+0xfad70f2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:44 (clickhouse+0xfad70f2) E #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad70f2) E #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad70f2) E #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad70f2) E #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad70f2) E #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad70f2) E #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) E #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) E #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) E #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) E #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) E #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) E #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) E #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) E #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) E #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) E #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) E #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) E #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) E E Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: E #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) E #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) E #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) E #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) E #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) E #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) E #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) E #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) E #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Mutex M0 (0x7ffd9bec1d88) created at: E #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) E #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) E #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T2 'TCPHandler' (tid=9, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) E #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) E #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) E #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) E #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 in std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) E ================== E ================== E WARNING: ThreadSanitizer: data race (pid=1) E Write of size 8 at 0x7b0400002238 by thread T2: E #0 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 (clickhouse+0x1af11474) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11474) E #2 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11474) E #3 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11474) E #4 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaeab9e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaeab9e) E #6 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab9e) E #7 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab9e) E #8 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) E #10 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) E #11 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) E #13 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) E #14 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) E #15 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) E #16 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) E #18 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) E #19 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #20 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #21 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #22 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #23 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #24 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #25 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #26 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #27 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #28 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Previous read of size 8 at 0x7b0400002238 by thread T255 (mutexes: write M0): E #0 std::__1::unique_ptr>::operator->[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 (clickhouse+0x1af1169a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:53 (clickhouse+0x1af1169a) E #2 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) E #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) E #5 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) E #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) E #7 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) E #8 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) E #10 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) E #11 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #14 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) E #15 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) E #16 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) E #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #18 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) E #19 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) E #20 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) E #21 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #22 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) E #23 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) E #24 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #25 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) E #26 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) E #27 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) E E Location is heap block of size 16 at 0x7b0400002230 allocated by main thread: E #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__unique_if::__unique_single std::__1::make_unique[abi:v15000]>>(std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:28 (clickhouse+0x1af10d46) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 DB::ProtocolServerAdapter::ProtocolServerAdapter(std::__1::basic_string, std::__1::allocator> const&, char const*, std::__1::basic_string, std::__1::allocator> const&, std::__1::unique_ptr>) build_docker/./src/Server/ProtocolServerAdapter.cpp:36:12 (clickhouse+0x1af10d46) E #3 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0::operator()(unsigned short) const build_docker/./programs/server/Server.cpp:2125:24 (clickhouse+0xfadbd92) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0&, unsigned short>(DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0&, unsigned short&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadbd92) E #5 DB::ProtocolServerAdapter std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0&, unsigned short>(DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0&, unsigned short&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfadbd92) E #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0, DB::ProtocolServerAdapter (unsigned short)>::operator()[abi:v15000](unsigned short&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadbd92) E #7 DB::ProtocolServerAdapter std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0, DB::ProtocolServerAdapter (unsigned short)>>(std::__1::__function::__policy_storage const*, unsigned short) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadbd92) E #8 std::__1::__function::__policy_func::operator()[abi:v15000](unsigned short&&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfaad3f0) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 std::__1::function::operator()(unsigned short) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfaad3f0) E #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:27 (clickhouse+0xfaad3f0) E #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2118:13 (clickhouse+0xfacb5a2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Mutex M0 (0x7ffd9bec1d88) created at: E #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) E #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) E #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T2 'TCPHandler' (tid=9, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) E #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) E #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) E #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) E #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 in std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) E ================== E ================== E WARNING: ThreadSanitizer: data race (pid=1) E Write of size 8 at 0x7b4000004418 by thread T2: E #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 Poco::Net::TCPServerDispatcher::~TCPServerDispatcher() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:78:1 (clickhouse+0x1f45d9c6) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 Poco::Net::TCPServerDispatcher::release() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:90:18 (clickhouse+0x1f45da5a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 Poco::Net::TCPServer::~TCPServer() build_docker/./base/poco/Net/src/TCPServer.cpp:91:17 (clickhouse+0x1f45ca05) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af44e01) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af44e01) E #6 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) E #8 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) E #9 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) E #10 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) E #11 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaeab9e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaeab9e) E #13 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab9e) E #14 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab9e) E #15 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) E #17 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) E #18 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #19 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) E #20 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) E #21 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) E #22 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) E #23 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #24 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) E #25 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) E #26 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #27 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #28 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #29 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #30 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #31 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #32 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #33 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #34 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #35 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Previous atomic read of size 4 at 0x7b4000004418 by thread T255 (mutexes: write M0): E #0 int std::__1::__cxx_atomic_load[abi:v15000](std::__1::__cxx_atomic_base_impl const*, std::__1::memory_order) build_docker/./contrib/llvm-project/libcxx/include/atomic:958:12 (clickhouse+0x1f45e740) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__atomic_base::load[abi:v15000](std::__1::memory_order) const build_docker/./contrib/llvm-project/libcxx/include/atomic:1588:17 (clickhouse+0x1f45e740) E #2 std::__1::__atomic_base::operator int[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/atomic:1592:53 (clickhouse+0x1f45e740) E #3 Poco::Net::TCPServerDispatcher::currentThreads() const build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:182:9 (clickhouse+0x1f45e740) E #4 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:23 (clickhouse+0x1f45cf83) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) E #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) E #9 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) E #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) E #11 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) E #12 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) E #14 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) E #15 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #18 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) E #19 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) E #20 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) E #21 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #22 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) E #23 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) E #24 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) E #25 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #26 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) E #27 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) E #28 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #29 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) E #30 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) E #31 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) E E Mutex M0 (0x7ffd9bec1d88) created at: E #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) E #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) E #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T2 'TCPHandler' (tid=9, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) E #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) E #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) E #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) E #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) E ================== E ================== E WARNING: ThreadSanitizer: data race (pid=1) E Write of size 8 at 0x7b4400027b18 by thread T2: E #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af44e0e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) E #4 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) E #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) E #6 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) E #7 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaeab9e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaeab9e) E #9 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab9e) E #10 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab9e) E #11 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) E #13 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) E #14 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #15 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) E #16 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) E #17 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) E #18 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) E #19 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #20 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) E #21 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) E #22 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #23 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #24 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #25 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #26 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #27 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #28 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #29 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #30 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #31 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Previous read of size 8 at 0x7b4400027b18 by thread T255 (mutexes: write M0): E #0 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:9 (clickhouse+0x1f45cf7a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) E #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) E #5 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) E #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) E #7 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) E #8 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) E #10 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) E #11 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #14 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) E #15 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) E #16 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) E #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #18 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) E #19 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) E #20 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) E #21 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #22 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) E #23 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) E #24 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #25 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) E #26 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) E #27 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) E E Mutex M0 (0x7ffd9bec1d88) created at: E #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) E #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) E #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T2 'TCPHandler' (tid=9, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) E #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) E #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) E #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) E #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) E ================== E ================== E WARNING: ThreadSanitizer: data race (pid=1) E Write of size 8 at 0x7b0400002230 by thread T2: E #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af114a2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaeab9e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaeab9e) E #4 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab9e) E #5 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab9e) E #6 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) E #8 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) E #9 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) E #11 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) E #12 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) E #13 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) E #14 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #15 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) E #16 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) E #17 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #18 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #19 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #20 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #21 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #22 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #23 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #24 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #25 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #26 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Previous read of size 8 at 0x7b0400002230 by thread T255 (mutexes: write M0): E #0 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad70fe) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad70fe) E #2 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad70fe) E #3 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad70fe) E #4 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad70fe) E #5 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad70fe) E #6 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) E #8 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) E #9 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #12 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) E #13 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) E #14 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) E #15 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #16 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) E #17 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) E #18 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) E #19 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #20 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) E #21 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) E #22 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #23 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) E #24 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) E #25 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) E E Mutex M0 (0x7ffd9bec1d88) created at: E #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) E #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) E #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T2 'TCPHandler' (tid=9, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) E #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) E #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) E #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) E #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) E ================== E LLVMSymbolizer: error reading file: No such file or directory E ================== E WARNING: ThreadSanitizer: data race (pid=1) E Read of size 8 at 0x7ffd9bec2190 by thread T255 (mutexes: write M0): E #0 std::__1::vector>::size[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/vector:537:46 (clickhouse+0xfad6d61) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:756:77 (clickhouse+0xfad6d61) E #2 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad6d61) E #3 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad6d61) E #4 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad6d61) E #5 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad6d61) E #6 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) E #8 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) E #9 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #12 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) E #13 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) E #14 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) E #15 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #16 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) E #17 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) E #18 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) E #19 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #20 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) E #21 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) E #22 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #23 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) E #24 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) E #25 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) E E Previous write of size 8 at 0x7ffd9bec2190 by thread T2: E #0 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:834:18 (clickhouse+0xfaea9d8) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea9d8) E #2 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea9d8) E #3 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) E #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) E #7 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) E #8 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) E #9 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) E #10 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) E #12 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) E #13 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #14 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #15 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #18 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #19 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #20 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #21 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #22 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Location is stack of main thread. E E Location is global '??' at 0x7ffd9bea3000 ([stack]+0x1f190) E E Mutex M0 (0x7ffd9bec1d88) created at: E #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) E #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) E #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) E #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) E #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) E #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T2 'TCPHandler' (tid=9, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) E #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/vector:537:46 in std::__1::vector>::size[abi:v15000]() const E ================== E ================== E WARNING: ThreadSanitizer: data race (pid=1) E Read of size 1 at 0x7b540000eb7f by thread T255 (mutexes: write M0): E #0 std::__1::basic_string, std::__1::allocator>::__is_long[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/string:1499:33 (clickhouse+0xfad7042) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::basic_string, std::__1::allocator>::basic_string(std::__1::basic_string, std::__1::allocator> const&) build_docker/./contrib/llvm-project/libcxx/include/string:2012:16 (clickhouse+0xfad7042) E #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:60 (clickhouse+0xfad7042) E #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7042) E #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7042) E #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7042) E #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7042) E #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) E #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) E #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) E #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) E #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) E #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) E #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) E #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) E #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) E #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) E #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) E #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) E #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) E E Previous write of size 8 at 0x7b540000eb78 by thread T2: E #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::basic_string, std::__1::allocator>::__move_assign[abi:v15000](std::__1::basic_string, std::__1::allocator>&, std::__1::integral_constant) build_docker/./contrib/llvm-project/libcxx/include/string:2547:16 (clickhouse+0xfaeaad7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::basic_string, std::__1::allocator>::operator=[abi:v15000](std::__1::basic_string, std::__1::allocator>&&) build_docker/./contrib/llvm-project/libcxx/include/string:2562:5 (clickhouse+0xfaeaad7) E #3 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeaad7) E #4 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2c76) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2c76) E #6 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2422:5 (clickhouse+0xfad2c76) E #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) E #9 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) E #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) E #11 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) E #12 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) E #14 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) E #15 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #18 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #19 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #20 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #21 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #22 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #23 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #24 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: E #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) E #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) E #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) E #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) E #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) E #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) E #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) E #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) E #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Mutex M0 (0x7ffd9bec1d88) created at: E #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) E #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) E #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) E #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) E #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) E #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T2 'TCPHandler' (tid=9, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) E #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/string:1499:33 in std::__1::basic_string, std::__1::allocator>::__is_long[abi:v15000]() const E ================== E ================== E WARNING: ThreadSanitizer: data race (pid=1) E Read of size 8 at 0x7b540000eb68 by thread T255 (mutexes: write M0): E #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::basic_string, std::__1::allocator>::basic_string(std::__1::basic_string, std::__1::allocator> const&) build_docker/./contrib/llvm-project/libcxx/include/string:2013:26 (clickhouse+0xfad7059) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:60 (clickhouse+0xfad7059) E #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7059) E #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7059) E #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7059) E #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7059) E #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) E #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) E #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) E #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) E #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) E #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) E #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) E #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) E #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) E #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) E #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) E #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) E #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) E E Previous write of size 1 at 0x7b540000eb68 by thread T2: E #0 std::__1::char_traits::assign(char&, char const&) build_docker/./contrib/llvm-project/libcxx/include/__string/char_traits.h:198:73 (clickhouse+0xfaeaaed) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::basic_string, std::__1::allocator>::__move_assign[abi:v15000](std::__1::basic_string, std::__1::allocator>&, std::__1::integral_constant) build_docker/./contrib/llvm-project/libcxx/include/string:2552:5 (clickhouse+0xfaeaaed) E #2 std::__1::basic_string, std::__1::allocator>::operator=[abi:v15000](std::__1::basic_string, std::__1::allocator>&&) build_docker/./contrib/llvm-project/libcxx/include/string:2562:5 (clickhouse+0xfaeaaed) E #3 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeaaed) E #4 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2c76) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2c76) E #6 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2422:5 (clickhouse+0xfad2c76) E #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) E #9 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) E #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) E #11 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) E #12 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) E #14 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) E #15 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #18 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #19 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #20 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #21 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #22 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #23 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #24 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: E #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) E #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) E #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) E #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) E #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) E #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) E #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) E #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) E #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Mutex M0 (0x7ffd9bec1d88) created at: E #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) E #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) E #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) E #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) E #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) E #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T2 'TCPHandler' (tid=9, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) E #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in __tsan_memcpy E ================== E ================== E WARNING: ThreadSanitizer: data race (pid=1) E Read of size 8 at 0x7b540000eb98 by thread T255 (mutexes: write M0): E #0 std::__1::unique_ptr>::operator->[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 (clickhouse+0xfad70f2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:44 (clickhouse+0xfad70f2) E #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad70f2) E #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad70f2) E #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad70f2) E #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad70f2) E #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad70f2) E #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) E #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) E #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) E #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) E #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) E #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) E #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) E #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) E #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) E #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) E #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) E #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) E #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) E E Previous write of size 8 at 0x7b540000eb98 by thread T2: E #0 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 (clickhouse+0xfaeab84) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab84) E #2 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab84) E #3 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2c76) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2c76) E #5 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2422:5 (clickhouse+0xfad2c76) E #6 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) E #8 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) E #9 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) E #10 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) E #11 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) E #13 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) E #14 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #15 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #18 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #19 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #20 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #21 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #22 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #23 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: E #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) E #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) E #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) E #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) E #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) E #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) E #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) E #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) E #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Mutex M0 (0x7ffd9bec1d88) created at: E #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) E #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) E #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) E #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) E #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) E #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T2 'TCPHandler' (tid=9, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) E #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 in std::__1::unique_ptr>::operator->[abi:v15000]() const E ================== E ================== E WARNING: ThreadSanitizer: data race (pid=1) E Read of size 8 at 0x7b540000ebb8 by thread T255 (mutexes: write M0): E #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::basic_string, std::__1::allocator>::basic_string(std::__1::basic_string, std::__1::allocator> const&) build_docker/./contrib/llvm-project/libcxx/include/string:2013:26 (clickhouse+0xfad7059) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:60 (clickhouse+0xfad7059) E #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7059) E #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7059) E #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7059) E #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7059) E #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) E #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) E #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) E #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) E #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) E #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) E #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) E #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) E #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) E #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) E #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) E #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) E #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) E E Previous write of size 1 at 0x7b540000ebb8 by thread T2: E #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::basic_string, std::__1::allocator>::__move_assign[abi:v15000](std::__1::basic_string, std::__1::allocator>&, std::__1::integral_constant) build_docker/./contrib/llvm-project/libcxx/include/string:2547:16 (clickhouse+0xfaeaad7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::basic_string, std::__1::allocator>::operator=[abi:v15000](std::__1::basic_string, std::__1::allocator>&&) build_docker/./contrib/llvm-project/libcxx/include/string:2562:5 (clickhouse+0xfaeaad7) E #3 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeaad7) E #4 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2c76) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2c76) E #6 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2422:5 (clickhouse+0xfad2c76) E #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) E #9 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) E #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) E #11 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) E #12 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) E #14 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) E #15 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #18 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #19 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #20 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #21 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #22 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #23 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #24 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: E #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) E #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) E #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) E #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) E #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) E #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) E #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) E #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) E #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Mutex M0 (0x7ffd9bec1d88) created at: E #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) E #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) E #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) E #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) E #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) E #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T2 'TCPHandler' (tid=9, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) E #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in __tsan_memcpy E ================== E ================== E WARNING: ThreadSanitizer: data race (pid=1) E Read of size 8 at 0x7b540000ebe8 by thread T255 (mutexes: write M0): E #0 std::__1::unique_ptr>::operator->[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 (clickhouse+0xfad70f2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:44 (clickhouse+0xfad70f2) E #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad70f2) E #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad70f2) E #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad70f2) E #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad70f2) E #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad70f2) E #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) E #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) E #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) E #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) E #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) E #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) E #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) E #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) E #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) E #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) E #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) E #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) E #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) E E Previous write of size 8 at 0x7b540000ebe8 by thread T2: E #0 std::__1::unique_ptr>::release[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296:20 (clickhouse+0xfaeab70) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:15 (clickhouse+0xfaeab70) E #2 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab70) E #3 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2c76) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2c76) E #5 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2422:5 (clickhouse+0xfad2c76) E #6 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) E #8 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) E #9 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) E #10 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) E #11 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) E #13 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) E #14 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #15 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #18 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #19 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #20 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #21 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #22 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #23 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: E #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) E #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) E #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) E #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) E #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) E #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) E #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) E #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) E #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Mutex M0 (0x7ffd9bec1d88) created at: E #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) E #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) E #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) E #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) E #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) E #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T2 'TCPHandler' (tid=9, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) E #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 in std::__1::unique_ptr>::operator->[abi:v15000]() const E ================== E ================== E WARNING: ThreadSanitizer: data race (pid=1) E Write of size 8 at 0x7b4000008218 by thread T2: E #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 Poco::Net::TCPServerDispatcher::~TCPServerDispatcher() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:78:1 (clickhouse+0x1f45d9c6) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 Poco::Net::TCPServerDispatcher::release() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:90:18 (clickhouse+0x1f45da5a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 Poco::Net::TCPServer::~TCPServer() build_docker/./base/poco/Net/src/TCPServer.cpp:91:17 (clickhouse+0x1f45ca05) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af4a441) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 DB::HTTPServer::~HTTPServer() build_docker/./src/Server/HTTP/HTTPServer.cpp:23:1 (clickhouse+0x1af4a441) E #6 DB::HTTPServer::~HTTPServer() build_docker/./src/Server/HTTP/HTTPServer.cpp:19:1 (clickhouse+0x1af4a479) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) E #9 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) E #10 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) E #11 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) E #12 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaeab9e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaeab9e) E #14 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab9e) E #15 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab9e) E #16 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) E #18 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) E #19 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #20 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) E #21 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) E #22 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) E #23 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) E #24 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #25 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) E #26 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) E #27 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #28 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #29 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #30 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #31 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #32 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #33 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #34 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #35 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #36 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Previous atomic read of size 4 at 0x7b4000008218 by thread T255 (mutexes: write M0): E #0 int std::__1::__cxx_atomic_load[abi:v15000](std::__1::__cxx_atomic_base_impl const*, std::__1::memory_order) build_docker/./contrib/llvm-project/libcxx/include/atomic:958:12 (clickhouse+0x1f45e740) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__atomic_base::load[abi:v15000](std::__1::memory_order) const build_docker/./contrib/llvm-project/libcxx/include/atomic:1588:17 (clickhouse+0x1f45e740) E #2 std::__1::__atomic_base::operator int[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/atomic:1592:53 (clickhouse+0x1f45e740) E #3 Poco::Net::TCPServerDispatcher::currentThreads() const build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:182:9 (clickhouse+0x1f45e740) E #4 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:23 (clickhouse+0x1f45cf83) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) E #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) E #9 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) E #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) E #11 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) E #12 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) E #14 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) E #15 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #18 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) E #19 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) E #20 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) E #21 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #22 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) E #23 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) E #24 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) E #25 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #26 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) E #27 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) E #28 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #29 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) E #30 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) E #31 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) E E Mutex M0 (0x7ffd9bec1d88) created at: E #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) E #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) E #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T2 'TCPHandler' (tid=9, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) E #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) E #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) E #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) E #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) E ================== E ================== E WARNING: ThreadSanitizer: data race (pid=1) E Write of size 8 at 0x7b4400070458 by thread T2: E #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 DB::HTTPServer::~HTTPServer() build_docker/./src/Server/HTTP/HTTPServer.cpp:19:1 (clickhouse+0x1af4a486) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) E #4 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) E #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) E #6 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) E #7 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaeab9e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaeab9e) E #9 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab9e) E #10 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab9e) E #11 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) E #13 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) E #14 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #15 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) E #16 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) E #17 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) E #18 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) E #19 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #20 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) E #21 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) E #22 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #23 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #24 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #25 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #26 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #27 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #28 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #29 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #30 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #31 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Previous read of size 8 at 0x7b4400070458 by thread T255 (mutexes: write M0): E #0 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:9 (clickhouse+0x1f45cf7a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) E #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) E #5 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) E #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) E #7 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) E #8 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) E #10 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) E #11 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #14 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) E #15 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) E #16 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) E #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #18 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) E #19 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) E #20 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) E #21 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #22 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) E #23 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) E #24 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #25 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) E #26 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) E #27 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) E E Mutex M0 (0x7ffd9bec1d88) created at: E #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) E #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) E #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T2 'TCPHandler' (tid=9, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) E #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) E #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) E #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) E #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) E ================== E ================== E WARNING: ThreadSanitizer: data race (pid=1) E Write of size 8 at 0x7b0400003968 by thread T2: E #0 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 (clickhouse+0x1af11474) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11474) E #2 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11474) E #3 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11474) E #4 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaea8e9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaea8e9) E #6 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0xfaea8e9) E #7 DB::ProtocolServerAdapter::~ProtocolServerAdapter() build_docker/./src/Server/ProtocolServerAdapter.h:18:7 (clickhouse+0xfaea8e9) E #8 void std::__1::__destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:63:13 (clickhouse+0xfaea8e9) E #9 void std::__1::destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:88:5 (clickhouse+0xfaea8e9) E #10 void std::__1::allocator_traits>::destroy[abi:v15000](std::__1::allocator&, DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:317:9 (clickhouse+0xfaea8e9) E #11 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:833:9 (clickhouse+0xfaea8e9) E #12 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea8e9) E #13 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea8e9) E #14 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #15 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) E #16 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) E #18 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) E #19 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) E #20 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) E #21 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #22 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) E #23 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) E #24 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #25 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #26 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #27 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #28 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #29 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #30 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #31 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #32 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #33 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Previous read of size 8 at 0x7b0400003968 by thread T255 (mutexes: write M0): E #0 std::__1::unique_ptr>::operator->[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 (clickhouse+0x1af1169a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:53 (clickhouse+0x1af1169a) E #2 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) E #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) E #5 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) E #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) E #7 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) E #8 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) E #10 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) E #11 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #14 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) E #15 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) E #16 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) E #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #18 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) E #19 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) E #20 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) E #21 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #22 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) E #23 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) E #24 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #25 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) E #26 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) E #27 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) E E Location is heap block of size 16 at 0x7b0400003960 allocated by thread T259: E #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__unique_if::__unique_single std::__1::make_unique[abi:v15000]>>(std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:28 (clickhouse+0x1af10d46) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 DB::ProtocolServerAdapter::ProtocolServerAdapter(std::__1::basic_string, std::__1::allocator> const&, char const*, std::__1::basic_string, std::__1::allocator> const&, std::__1::unique_ptr>) build_docker/./src/Server/ProtocolServerAdapter.cpp:36:12 (clickhouse+0x1af10d46) E #3 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7::operator()(unsigned short) const build_docker/./programs/server/Server.cpp:2283:24 (clickhouse+0xfadde91) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7&, unsigned short>(DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7&, unsigned short&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadde91) E #5 DB::ProtocolServerAdapter std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7&, unsigned short>(DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7&, unsigned short&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfadde91) E #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7, DB::ProtocolServerAdapter (unsigned short)>::operator()[abi:v15000](unsigned short&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadde91) E #7 DB::ProtocolServerAdapter std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7, DB::ProtocolServerAdapter (unsigned short)>>(std::__1::__function::__policy_storage const*, unsigned short) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadde91) E #8 std::__1::__function::__policy_func::operator()[abi:v15000](unsigned short&&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfaad3f0) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 std::__1::function::operator()(unsigned short) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfaad3f0) E #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:27 (clickhouse+0xfaad3f0) E #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2277:13 (clickhouse+0xfacc211) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1558:9 (clickhouse+0xfadb99f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb99f) E #14 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb99f) E #15 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb99f) E #16 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb99f) E #17 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917a48) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #18 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917a48) E #19 DB::Context::startServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3832:5 (clickhouse+0x18917a48) E #20 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:627:27 (clickhouse+0x1962ac2f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #21 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #22 DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::__1::shared_ptr, std::__1::function, std::__1::optional const&, std::__1::function) build_docker/./src/Interpreters/executeQuery.cpp:1322:34 (clickhouse+0x19a6a0dd) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #23 DB::DDLWorker::tryExecuteQuery(DB::DDLTaskBase&, std::__1::shared_ptr const&) build_docker/./src/Interpreters/DDLWorker.cpp:483:9 (clickhouse+0x189b873f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #24 DB::DDLWorker::processTask(DB::DDLTaskBase&, std::__1::shared_ptr const&) build_docker/./src/Interpreters/DDLWorker.cpp:646:17 (clickhouse+0x189b611d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #25 DB::DDLWorker::scheduleTasks(bool) build_docker/./src/Interpreters/DDLWorker.cpp:426:13 (clickhouse+0x189b3c32) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #26 DB::DDLWorker::runMainThread() build_docker/./src/Interpreters/DDLWorker.cpp:1126:13 (clickhouse+0x189ad609) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #27 decltype(*std::declval().*std::declval()()) std::__1::__invoke[abi:v15000](void (DB::DDLWorker::*&)(), DB::DDLWorker*&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:359:23 (clickhouse+0x189c60bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #28 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&, 0ul>(void (DB::DDLWorker::*&)(), std::__1::tuple&, std::__1::__tuple_indices<0ul>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0x189c60bf) E #29 decltype(auto) std::__1::apply[abi:v15000]&>(void (DB::DDLWorker::*&)(), std::__1::tuple&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0x189c60bf) E #30 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0x189c60bf) E #31 decltype(std::declval()(std::declval())) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0x189c6001) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #32 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0x189c6001) E #33 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0x189c6001) E #34 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0x189c6001) E #35 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #36 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) E #37 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) E #38 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #39 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) E #40 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) E #41 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) E E Mutex M0 (0x7ffd9bec1d88) created at: E #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) E #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) E #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T2 'TCPHandler' (tid=9, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) E #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) E #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) E #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) E #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T259 'DDLWorker' (tid=266, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) E #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0x189c5e99) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0x189acd6f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::DDLWorker::startup() build_docker/./src/Interpreters/DDLWorker.cpp:126:19 (clickhouse+0x189acd6f) E #8 DB::Context::setDDLWorker(std::__1::unique_ptr>) build_docker/./src/Interpreters/Context.cpp:2773:17 (clickhouse+0x1890aab5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1877:29 (clickhouse+0xfac210c) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #14 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 in std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) E ================== E ================== E WARNING: ThreadSanitizer: data race (pid=1) E Write of size 8 at 0x7b4000008818 by thread T2: E #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 Poco::Net::TCPServerDispatcher::~TCPServerDispatcher() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:78:1 (clickhouse+0x1f45d9c6) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 Poco::Net::TCPServerDispatcher::release() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:90:18 (clickhouse+0x1f45da5a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 Poco::Net::TCPServer::~TCPServer() build_docker/./base/poco/Net/src/TCPServer.cpp:91:17 (clickhouse+0x1f45ca05) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af44e01) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af44e01) E #6 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) E #8 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) E #9 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) E #10 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) E #11 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaea8e9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaea8e9) E #13 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0xfaea8e9) E #14 DB::ProtocolServerAdapter::~ProtocolServerAdapter() build_docker/./src/Server/ProtocolServerAdapter.h:18:7 (clickhouse+0xfaea8e9) E #15 void std::__1::__destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:63:13 (clickhouse+0xfaea8e9) E #16 void std::__1::destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:88:5 (clickhouse+0xfaea8e9) E #17 void std::__1::allocator_traits>::destroy[abi:v15000](std::__1::allocator&, DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:317:9 (clickhouse+0xfaea8e9) E #18 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:833:9 (clickhouse+0xfaea8e9) E #19 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea8e9) E #20 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea8e9) E #21 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #22 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) E #23 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #24 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) E #25 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) E #26 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) E #27 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) E #28 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #29 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) E #30 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) E #31 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #32 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #33 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #34 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #35 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #36 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #37 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #38 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #39 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #40 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Previous atomic read of size 4 at 0x7b4000008818 by thread T255 (mutexes: write M0): E #0 int std::__1::__cxx_atomic_load[abi:v15000](std::__1::__cxx_atomic_base_impl const*, std::__1::memory_order) build_docker/./contrib/llvm-project/libcxx/include/atomic:958:12 (clickhouse+0x1f45e740) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__atomic_base::load[abi:v15000](std::__1::memory_order) const build_docker/./contrib/llvm-project/libcxx/include/atomic:1588:17 (clickhouse+0x1f45e740) E #2 std::__1::__atomic_base::operator int[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/atomic:1592:53 (clickhouse+0x1f45e740) E #3 Poco::Net::TCPServerDispatcher::currentThreads() const build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:182:9 (clickhouse+0x1f45e740) E #4 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:23 (clickhouse+0x1f45cf83) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) E #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) E #9 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) E #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) E #11 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) E #12 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) E #14 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) E #15 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #18 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) E #19 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) E #20 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) E #21 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #22 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) E #23 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) E #24 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) E #25 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #26 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) E #27 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) E #28 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #29 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) E #30 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) E #31 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) E E Mutex M0 (0x7ffd9bec1d88) created at: E #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) E #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) E #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T2 'TCPHandler' (tid=9, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) E #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) E #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) E #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) E #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) E ================== E ================== E WARNING: ThreadSanitizer: data race (pid=1) E Write of size 8 at 0x7b4400070f98 by thread T2: E #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af44e0e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) E #4 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) E #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) E #6 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) E #7 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaea8e9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaea8e9) E #9 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0xfaea8e9) E #10 DB::ProtocolServerAdapter::~ProtocolServerAdapter() build_docker/./src/Server/ProtocolServerAdapter.h:18:7 (clickhouse+0xfaea8e9) E #11 void std::__1::__destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:63:13 (clickhouse+0xfaea8e9) E #12 void std::__1::destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:88:5 (clickhouse+0xfaea8e9) E #13 void std::__1::allocator_traits>::destroy[abi:v15000](std::__1::allocator&, DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:317:9 (clickhouse+0xfaea8e9) E #14 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:833:9 (clickhouse+0xfaea8e9) E #15 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea8e9) E #16 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea8e9) E #17 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #18 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) E #19 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #20 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) E #21 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) E #22 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) E #23 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) E #24 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #25 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) E #26 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) E #27 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #28 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #29 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #30 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #31 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #32 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #33 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #34 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #35 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #36 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Previous read of size 8 at 0x7b4400070f98 by thread T255 (mutexes: write M0): E #0 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:9 (clickhouse+0x1f45cf7a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) E #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) E #5 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) E #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) E #7 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) E #8 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) E #10 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) E #11 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #14 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) E #15 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) E #16 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) E #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #18 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) E #19 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) E #20 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) E #21 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #22 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) E #23 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) E #24 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #25 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) E #26 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) E #27 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) E E Mutex M0 (0x7ffd9bec1d88) created at: E #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) E #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) E #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T2 'TCPHandler' (tid=9, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) E #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) E #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) E #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) E #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) E ================== E ================== E WARNING: ThreadSanitizer: data race (pid=1) E Write of size 8 at 0x7b0400003960 by thread T2: E #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af114a2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaea8e9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaea8e9) E #4 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0xfaea8e9) E #5 DB::ProtocolServerAdapter::~ProtocolServerAdapter() build_docker/./src/Server/ProtocolServerAdapter.h:18:7 (clickhouse+0xfaea8e9) E #6 void std::__1::__destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:63:13 (clickhouse+0xfaea8e9) E #7 void std::__1::destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:88:5 (clickhouse+0xfaea8e9) E #8 void std::__1::allocator_traits>::destroy[abi:v15000](std::__1::allocator&, DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:317:9 (clickhouse+0xfaea8e9) E #9 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:833:9 (clickhouse+0xfaea8e9) E #10 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea8e9) E #11 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea8e9) E #12 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) E #14 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #15 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) E #16 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) E #17 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) E #18 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) E #19 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #20 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) E #21 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) E #22 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #23 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #24 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #25 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #26 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #27 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #28 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #29 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #30 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #31 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Previous read of size 8 at 0x7b0400003960 by thread T255 (mutexes: write M0): E #0 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad70fe) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad70fe) E #2 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad70fe) E #3 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad70fe) E #4 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad70fe) E #5 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad70fe) E #6 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) E #8 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) E #9 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #12 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) E #13 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) E #14 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) E #15 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #16 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) E #17 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) E #18 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) E #19 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #20 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) E #21 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) E #22 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #23 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) E #24 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) E #25 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) E E Mutex M0 (0x7ffd9bec1d88) created at: E #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) E #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) E #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T2 'TCPHandler' (tid=9, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) E #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) E #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) E #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) E #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) E ================== E ================== E WARNING: ThreadSanitizer: data race (pid=1) E Write of size 8 at 0x7b540000ed28 by thread T4: E #0 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 (clickhouse+0xfaea8ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0xfaea8ca) E #2 DB::ProtocolServerAdapter::~ProtocolServerAdapter() build_docker/./src/Server/ProtocolServerAdapter.h:18:7 (clickhouse+0xfaea8ca) E #3 void std::__1::__destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:63:13 (clickhouse+0xfaea8ca) E #4 void std::__1::destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:88:5 (clickhouse+0xfaea8ca) E #5 void std::__1::allocator_traits>::destroy[abi:v15000](std::__1::allocator&, DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:317:9 (clickhouse+0xfaea8ca) E #6 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:833:9 (clickhouse+0xfaea8ca) E #7 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea8ca) E #8 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea8ca) E #9 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) E #11 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) E #13 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) E #14 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) E #15 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) E #16 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) E #18 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) E #19 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #20 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #21 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #22 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #23 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #24 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #25 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #26 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #27 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #28 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Previous read of size 8 at 0x7b540000ed28 by thread T255 (mutexes: write M0): E #0 std::__1::unique_ptr>::operator->[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 (clickhouse+0xfad70f2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:44 (clickhouse+0xfad70f2) E #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad70f2) E #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad70f2) E #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad70f2) E #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad70f2) E #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad70f2) E #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) E #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) E #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) E #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) E #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) E #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) E #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) E #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) E #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) E #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) E #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) E #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) E #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) E E Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: E #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) E #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) E #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) E #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) E #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) E #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) E #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) E #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) E #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Mutex M0 (0x7ffd9bec1d88) created at: E #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) E #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) E #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T4 'TCPHandler' (tid=11, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) E #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) E #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) E #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) E #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 in std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) E ================== E ================== E WARNING: ThreadSanitizer: data race (pid=1) E Write of size 8 at 0x7b4000009718 by thread T4: E #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 Poco::Net::TCPServerDispatcher::~TCPServerDispatcher() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:78:1 (clickhouse+0x1f45d9c6) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 Poco::Net::TCPServerDispatcher::release() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:90:18 (clickhouse+0x1f45da5a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 Poco::Net::TCPServer::~TCPServer() build_docker/./base/poco/Net/src/TCPServer.cpp:91:17 (clickhouse+0x1f45ca05) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af4a441) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 DB::HTTPServer::~HTTPServer() build_docker/./src/Server/HTTP/HTTPServer.cpp:23:1 (clickhouse+0x1af4a441) E #6 DB::HTTPServer::~HTTPServer() build_docker/./src/Server/HTTP/HTTPServer.cpp:19:1 (clickhouse+0x1af4a479) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) E #9 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) E #10 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) E #11 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) E #12 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaea8e9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaea8e9) E #14 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0xfaea8e9) E #15 DB::ProtocolServerAdapter::~ProtocolServerAdapter() build_docker/./src/Server/ProtocolServerAdapter.h:18:7 (clickhouse+0xfaea8e9) E #16 void std::__1::__destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:63:13 (clickhouse+0xfaea8e9) E #17 void std::__1::destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:88:5 (clickhouse+0xfaea8e9) E #18 void std::__1::allocator_traits>::destroy[abi:v15000](std::__1::allocator&, DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:317:9 (clickhouse+0xfaea8e9) E #19 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:833:9 (clickhouse+0xfaea8e9) E #20 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea8e9) E #21 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea8e9) E #22 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #23 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) E #24 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #25 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) E #26 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) E #27 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) E #28 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) E #29 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #30 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) E #31 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) E #32 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #33 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #34 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #35 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #36 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #37 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #38 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #39 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #40 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #41 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Previous atomic read of size 4 at 0x7b4000009718 by thread T255 (mutexes: write M0): E #0 int std::__1::__cxx_atomic_load[abi:v15000](std::__1::__cxx_atomic_base_impl const*, std::__1::memory_order) build_docker/./contrib/llvm-project/libcxx/include/atomic:958:12 (clickhouse+0x1f45e740) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__atomic_base::load[abi:v15000](std::__1::memory_order) const build_docker/./contrib/llvm-project/libcxx/include/atomic:1588:17 (clickhouse+0x1f45e740) E #2 std::__1::__atomic_base::operator int[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/atomic:1592:53 (clickhouse+0x1f45e740) E #3 Poco::Net::TCPServerDispatcher::currentThreads() const build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:182:9 (clickhouse+0x1f45e740) E #4 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:23 (clickhouse+0x1f45cf83) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) E #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) E #9 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) E #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) E #11 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) E #12 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) E #14 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) E #15 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #18 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) E #19 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) E #20 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) E #21 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #22 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) E #23 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) E #24 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) E #25 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #26 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) E #27 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) E #28 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #29 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) E #30 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) E #31 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) E E Mutex M0 (0x7ffd9bec1d88) created at: E #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) E #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) E #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T4 'TCPHandler' (tid=11, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) E #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) E #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) E #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) E #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) E ================== E ================== E WARNING: ThreadSanitizer: data race (pid=1) E Write of size 8 at 0x7b4400072d98 by thread T4: E #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 DB::HTTPServer::~HTTPServer() build_docker/./src/Server/HTTP/HTTPServer.cpp:19:1 (clickhouse+0x1af4a486) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) E #4 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) E #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) E #6 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) E #7 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaea8e9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaea8e9) E #9 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0xfaea8e9) E #10 DB::ProtocolServerAdapter::~ProtocolServerAdapter() build_docker/./src/Server/ProtocolServerAdapter.h:18:7 (clickhouse+0xfaea8e9) E #11 void std::__1::__destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:63:13 (clickhouse+0xfaea8e9) E #12 void std::__1::destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:88:5 (clickhouse+0xfaea8e9) E #13 void std::__1::allocator_traits>::destroy[abi:v15000](std::__1::allocator&, DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:317:9 (clickhouse+0xfaea8e9) E #14 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:833:9 (clickhouse+0xfaea8e9) E #15 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea8e9) E #16 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea8e9) E #17 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #18 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) E #19 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #20 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) E #21 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) E #22 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) E #23 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) E #24 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #25 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) E #26 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) E #27 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #28 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #29 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #30 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #31 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #32 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #33 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #34 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #35 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #36 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Previous read of size 8 at 0x7b4400072d98 by thread T255 (mutexes: write M0): E #0 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:9 (clickhouse+0x1f45cf7a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) E #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) E #5 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) E #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) E #7 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) E #8 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) E #10 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) E #11 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #14 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) E #15 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) E #16 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) E #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #18 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) E #19 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) E #20 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) E #21 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #22 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) E #23 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) E #24 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #25 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) E #26 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) E #27 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) E E Mutex M0 (0x7ffd9bec1d88) created at: E #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) E #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) E #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T4 'TCPHandler' (tid=11, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) E #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) E #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) E #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) E #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) E ================== E ================== E WARNING: ThreadSanitizer: data race (pid=1) E Read of size 8 at 0x7ffd9bec2190 by thread T255 (mutexes: write M0): E #0 std::__1::vector>::size[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/vector:537:46 (clickhouse+0xfad6d61) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:756:77 (clickhouse+0xfad6d61) E #2 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad6d61) E #3 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad6d61) E #4 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad6d61) E #5 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad6d61) E #6 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) E #8 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) E #9 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #12 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) E #13 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) E #14 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) E #15 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #16 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) E #17 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) E #18 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) E #19 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #20 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) E #21 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) E #22 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #23 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) E #24 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) E #25 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) E E Previous write of size 8 at 0x7ffd9bec2190 by thread T4: E #0 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:834:18 (clickhouse+0xfaea9d8) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea9d8) E #2 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea9d8) E #3 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2a19) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2422:5 (clickhouse+0xfad2a19) E #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) E #7 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) E #8 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) E #9 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) E #10 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) E #12 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) E #13 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #14 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #15 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #18 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #19 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #20 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #21 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #22 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Location is stack of main thread. E E Location is global '??' at 0x7ffd9bea3000 ([stack]+0x1f190) E E Mutex M0 (0x7ffd9bec1d88) created at: E #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) E #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) E #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) E #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) E #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) E #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T4 'TCPHandler' (tid=11, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) E #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/vector:537:46 in std::__1::vector>::size[abi:v15000]() const E ================== E ================== E WARNING: ThreadSanitizer: data race (pid=1) E Write of size 1 at 0x7b540000ebcf by thread T4: E #0 std::__1::basic_string, std::__1::allocator>::__set_short_size[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/string:1570:37 (clickhouse+0xfaeaae0) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::basic_string, std::__1::allocator>::__move_assign[abi:v15000](std::__1::basic_string, std::__1::allocator>&, std::__1::integral_constant) build_docker/./contrib/llvm-project/libcxx/include/string:2551:11 (clickhouse+0xfaeaae0) E #2 std::__1::basic_string, std::__1::allocator>::operator=[abi:v15000](std::__1::basic_string, std::__1::allocator>&&) build_docker/./contrib/llvm-project/libcxx/include/string:2562:5 (clickhouse+0xfaeaae0) E #3 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeaae0) E #4 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) E #6 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) E #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) E #9 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) E #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) E #11 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) E #12 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) E #14 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) E #15 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #18 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #19 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #20 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #21 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #22 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #23 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #24 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Previous read of size 1 at 0x7b540000ebcf by thread T255 (mutexes: write M0): E #0 std::__1::basic_string, std::__1::allocator>::__is_long[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/string:1499:33 (clickhouse+0xfad7042) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::basic_string, std::__1::allocator>::basic_string(std::__1::basic_string, std::__1::allocator> const&) build_docker/./contrib/llvm-project/libcxx/include/string:2012:16 (clickhouse+0xfad7042) E #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:60 (clickhouse+0xfad7042) E #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7042) E #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7042) E #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7042) E #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7042) E #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) E #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) E #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) E #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) E #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) E #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) E #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) E #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) E #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) E #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) E #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) E #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) E #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) E #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) E E Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: E #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) E #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) E #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) E #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) E #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) E #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) E #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) E #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) E #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Mutex M0 (0x7ffd9bec1d88) created at: E #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) E #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) E #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T4 'TCPHandler' (tid=11, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) E #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: E #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) E #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) E #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) E #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) E E SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/string:1570:37 in std::__1::basic_string, std::__1::allocator>::__set_short_size[abi:v15000](unsigned long) E ================== E ThreadSanitizer: reported 26 warnings helpers/cluster.py:3092: Exception ------------------------------ Captured log call ------------------------------- 2024-09-24 00:55:46 [ 409 ] DEBUG : Executing query SELECT 1 on main_node (cluster.py:3423, query) 2024-09-24 00:55:46 [ 409 ] DEBUG : Executing query SELECT * FROM mysql('127.0.0.1:9004', 'system', 'one', 'default', '', SETTINGS connect_timeout = 100, connection_wait_timeout = 100) on main_node (cluster.py:3423, query) 2024-09-24 00:55:47 [ 409 ] DEBUG : Starting new HTTP connection (1): 172.16.3.5:8123 (connectionpool.py:244, _new_conn) 2024-09-24 00:55:47 [ 409 ] DEBUG : http://172.16.3.5:8123 "POST /ping HTTP/1.1" 400 None (connectionpool.py:546, _make_request) 2024-09-24 00:55:47 [ 409 ] DEBUG : Starting new HTTP connection (1): 172.16.3.5:8124 (connectionpool.py:244, _new_conn) 2024-09-24 00:55:47 [ 409 ] DEBUG : http://172.16.3.5:8124 "POST /ping HTTP/1.1" 400 None (connectionpool.py:546, _make_request) 2024-09-24 00:55:47 [ 409 ] DEBUG : Executing query SYSTEM STOP LISTEN QUERIES ALL EXCEPT MYSQL, CUSTOM 'tcp' on main_node (cluster.py:3423, query) 2024-09-24 00:55:48 [ 409 ] DEBUG : Executing query SELECT 1 on main_node (cluster.py:3495, query_and_get_error) 2024-09-24 00:55:48 [ 409 ] DEBUG : Starting new HTTP connection (1): 172.16.3.5:8123 (connectionpool.py:244, _new_conn) 2024-09-24 00:55:48 [ 409 ] DEBUG : Starting new HTTP connection (1): 172.16.3.5:8124 (connectionpool.py:244, _new_conn) 2024-09-24 00:55:48 [ 409 ] DEBUG : Executing query SYSTEM START LISTEN ON CLUSTER default QUERIES ALL EXCEPT TCP on backup_node (cluster.py:3423, query) 2024-09-24 00:55:49 [ 409 ] DEBUG : Executing query SELECT 1 on main_node (cluster.py:3495, query_and_get_error) 2024-09-24 00:55:49 [ 409 ] DEBUG : Starting new HTTP connection (1): 172.16.3.5:8123 (connectionpool.py:244, _new_conn) 2024-09-24 00:55:49 [ 409 ] DEBUG : http://172.16.3.5:8123 "POST /ping HTTP/1.1" 400 None (connectionpool.py:546, _make_request) 2024-09-24 00:55:49 [ 409 ] DEBUG : Starting new HTTP connection (1): 172.16.3.5:8124 (connectionpool.py:244, _new_conn) 2024-09-24 00:55:49 [ 409 ] DEBUG : http://172.16.3.5:8124 "POST /ping HTTP/1.1" 400 None (connectionpool.py:546, _make_request) 2024-09-24 00:55:49 [ 409 ] DEBUG : Executing query SYSTEM START LISTEN ON CLUSTER default QUERIES ALL on backup_node (cluster.py:3423, query) 2024-09-24 00:55:49 [ 409 ] DEBUG : Executing query SELECT 1 on main_node (cluster.py:3423, query) 2024-09-24 00:55:49 [ 409 ] DEBUG : Executing query SELECT * FROM mysql('127.0.0.1:9004', 'system', 'one', 'default', '', SETTINGS connect_timeout = 100, connection_wait_timeout = 100) on main_node (cluster.py:3423, query) 2024-09-24 00:55:50 [ 409 ] DEBUG : Starting new HTTP connection (1): 172.16.3.5:8123 (connectionpool.py:244, _new_conn) 2024-09-24 00:55:50 [ 409 ] DEBUG : http://172.16.3.5:8123 "POST /ping HTTP/1.1" 400 None (connectionpool.py:546, _make_request) 2024-09-24 00:55:50 [ 409 ] DEBUG : Starting new HTTP connection (1): 172.16.3.5:8124 (connectionpool.py:244, _new_conn) 2024-09-24 00:55:50 [ 409 ] DEBUG : http://172.16.3.5:8124 "POST /ping HTTP/1.1" 400 None (connectionpool.py:546, _make_request) 2024-09-24 00:55:50 [ 409 ] DEBUG : Executing query SYSTEM STOP LISTEN QUERIES DEFAULT EXCEPT TCP on main_node (cluster.py:3423, query) 2024-09-24 00:55:51 [ 409 ] DEBUG : Executing query SELECT 1 on main_node (cluster.py:3423, query) 2024-09-24 00:55:51 [ 409 ] DEBUG : Starting new HTTP connection (1): 172.16.3.5:8123 (connectionpool.py:244, _new_conn) 2024-09-24 00:55:51 [ 409 ] DEBUG : Starting new HTTP connection (1): 172.16.3.5:8124 (connectionpool.py:244, _new_conn) 2024-09-24 00:55:51 [ 409 ] DEBUG : http://172.16.3.5:8124 "POST /ping HTTP/1.1" 400 None (connectionpool.py:546, _make_request) 2024-09-24 00:55:51 [ 409 ] DEBUG : Executing query SYSTEM START LISTEN ON CLUSTER default QUERIES DEFAULT EXCEPT HTTP on backup_node (cluster.py:3423, query) 2024-09-24 00:55:52 [ 409 ] DEBUG : Executing query SELECT 1 on main_node (cluster.py:3423, query) 2024-09-24 00:55:52 [ 409 ] DEBUG : Executing query SELECT * FROM mysql('127.0.0.1:9004', 'system', 'one', 'default', '', SETTINGS connect_timeout = 100, connection_wait_timeout = 100) on main_node (cluster.py:3423, query) 2024-09-24 00:55:53 [ 409 ] DEBUG : Starting new HTTP connection (1): 172.16.3.5:8123 (connectionpool.py:244, _new_conn) 2024-09-24 00:55:53 [ 409 ] DEBUG : Starting new HTTP connection (1): 172.16.3.5:8124 (connectionpool.py:244, _new_conn) 2024-09-24 00:55:53 [ 409 ] DEBUG : http://172.16.3.5:8124 "POST /ping HTTP/1.1" 400 None (connectionpool.py:546, _make_request) 2024-09-24 00:55:53 [ 409 ] DEBUG : Executing query SYSTEM START LISTEN ON CLUSTER default QUERIES ALL on backup_node (cluster.py:3423, query) 2024-09-24 00:55:53 [ 409 ] DEBUG : Executing query SELECT 1 on main_node (cluster.py:3423, query) 2024-09-24 00:55:53 [ 409 ] DEBUG : Executing query SELECT * FROM mysql('127.0.0.1:9004', 'system', 'one', 'default', '', SETTINGS connect_timeout = 100, connection_wait_timeout = 100) on main_node (cluster.py:3423, query) 2024-09-24 00:55:54 [ 409 ] DEBUG : Starting new HTTP connection (1): 172.16.3.5:8123 (connectionpool.py:244, _new_conn) 2024-09-24 00:55:54 [ 409 ] DEBUG : http://172.16.3.5:8123 "POST /ping HTTP/1.1" 400 None (connectionpool.py:546, _make_request) 2024-09-24 00:55:54 [ 409 ] DEBUG : Starting new HTTP connection (1): 172.16.3.5:8124 (connectionpool.py:244, _new_conn) 2024-09-24 00:55:54 [ 409 ] DEBUG : http://172.16.3.5:8124 "POST /ping HTTP/1.1" 400 None (connectionpool.py:546, _make_request) 2024-09-24 00:55:54 [ 409 ] DEBUG : Executing query SYSTEM STOP LISTEN QUERIES CUSTOM EXCEPT CUSTOM 'tcp' on main_node (cluster.py:3423, query) 2024-09-24 00:55:55 [ 409 ] DEBUG : Executing query SELECT 1 on main_node (cluster.py:3423, query) 2024-09-24 00:55:55 [ 409 ] DEBUG : Starting new HTTP connection (1): 172.16.3.5:8123 (connectionpool.py:244, _new_conn) 2024-09-24 00:55:55 [ 409 ] DEBUG : http://172.16.3.5:8123 "POST /ping HTTP/1.1" 400 None (connectionpool.py:546, _make_request) 2024-09-24 00:55:55 [ 409 ] DEBUG : Starting new HTTP connection (1): 172.16.3.5:8124 (connectionpool.py:244, _new_conn) 2024-09-24 00:55:55 [ 409 ] DEBUG : Executing query SYSTEM STOP LISTEN QUERIES CUSTOM on main_node (cluster.py:3423, query) 2024-09-24 00:55:56 [ 409 ] DEBUG : Executing query SYSTEM START LISTEN ON CLUSTER default QUERIES CUSTOM EXCEPT CUSTOM 'tcp' on backup_node (cluster.py:3423, query) 2024-09-24 00:55:56 [ 409 ] DEBUG : Executing query SELECT 1 on main_node (cluster.py:3423, query) 2024-09-24 00:55:56 [ 409 ] DEBUG : Executing query SELECT * FROM mysql('127.0.0.1:9004', 'system', 'one', 'default', '', SETTINGS connect_timeout = 100, connection_wait_timeout = 100) on main_node (cluster.py:3423, query) 2024-09-24 00:55:57 [ 409 ] DEBUG : Starting new HTTP connection (1): 172.16.3.5:8123 (connectionpool.py:244, _new_conn) 2024-09-24 00:55:57 [ 409 ] DEBUG : http://172.16.3.5:8123 "POST /ping HTTP/1.1" 400 None (connectionpool.py:546, _make_request) 2024-09-24 00:55:57 [ 409 ] DEBUG : Starting new HTTP connection (1): 172.16.3.5:8124 (connectionpool.py:244, _new_conn) 2024-09-24 00:55:57 [ 409 ] DEBUG : http://172.16.3.5:8124 "POST /ping HTTP/1.1" 400 None (connectionpool.py:546, _make_request) 2024-09-24 00:55:57 [ 409 ] DEBUG : Executing query SYSTEM START LISTEN ON CLUSTER default QUERIES ALL on backup_node (cluster.py:3423, query) 2024-09-24 00:55:57 [ 409 ] DEBUG : Executing query SELECT 1 on main_node (cluster.py:3423, query) 2024-09-24 00:55:57 [ 409 ] DEBUG : Executing query SELECT * FROM mysql('127.0.0.1:9004', 'system', 'one', 'default', '', SETTINGS connect_timeout = 100, connection_wait_timeout = 100) on main_node (cluster.py:3423, query) 2024-09-24 00:55:58 [ 409 ] DEBUG : Starting new HTTP connection (1): 172.16.3.5:8123 (connectionpool.py:244, _new_conn) 2024-09-24 00:55:58 [ 409 ] DEBUG : http://172.16.3.5:8123 "POST /ping HTTP/1.1" 400 None (connectionpool.py:546, _make_request) 2024-09-24 00:55:58 [ 409 ] DEBUG : Starting new HTTP connection (1): 172.16.3.5:8124 (connectionpool.py:244, _new_conn) 2024-09-24 00:55:58 [ 409 ] DEBUG : http://172.16.3.5:8124 "POST /ping HTTP/1.1" 400 None (connectionpool.py:546, _make_request) --------------------------- Captured stderr teardown --------------------------- WARNING: API is accessible on http://0.0.0.0:2375 without encryption. Access to the remote API is equivalent to root access on the host. Refer to the 'Docker daemon attack surface' section in the documentation for more information: https://docs.docker.com/go/attack-surface/ ---------------------------- Captured log teardown ----------------------------- 2024-09-24 00:55:58 [ 409 ] DEBUG : Command:['docker-compose', '--env-file', '/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/.env', '--project-name', 'roottestsystemstartstoplisten', '--file', '/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/docker-compose.yml', '--file', '/compose/docker_compose_keeper.yml', '--file', '/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/backup_node/docker-compose.yml', 'stop', '--timeout', '20'] (cluster.py:105, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stderr:Stopping roottestsystemstartstoplisten_backup_node_1 ... (cluster.py:115, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stderr:Stopping roottestsystemstartstoplisten_main_node_1 ... (cluster.py:115, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stderr:Stopping roottestsystemstartstoplisten_zoo3_1 ... (cluster.py:115, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stderr:Stopping roottestsystemstartstoplisten_zoo1_1 ... (cluster.py:115, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stderr:Stopping roottestsystemstartstoplisten_zoo2_1 ... (cluster.py:115, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stderr:Stopping roottestsystemstartstoplisten_backup_node_1 ... done (cluster.py:115, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stderr:Stopping roottestsystemstartstoplisten_main_node_1 ... done (cluster.py:115, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stderr:Stopping roottestsystemstartstoplisten_zoo3_1 ... done (cluster.py:115, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stderr:Stopping roottestsystemstartstoplisten_zoo2_1 ... done (cluster.py:115, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stderr:Stopping roottestsystemstartstoplisten_zoo1_1 ... done (cluster.py:115, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Command:['bash', '-c', '[ -f /ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log ] && zgrep -aH "==================" /ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log* || true'] (cluster.py:105, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : grep in log called ================== (cluster.py:3875, grep_in_log) 2024-09-24 00:56:20 [ 409 ] DEBUG : Command:['bash', '-c', '[ -f /ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log ] && zgrep -A1000 -a "==================" /ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/logs/stderr.log* || true'] (cluster.py:105, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:WARNING: ThreadSanitizer: data race (pid=1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Write of size 8 at 0x7b540000eb18 by thread T2: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::basic_string, std::__1::allocator>::__move_assign[abi:v15000](std::__1::basic_string, std::__1::allocator>&, std::__1::integral_constant) build_docker/./contrib/llvm-project/libcxx/include/string:2547:16 (clickhouse+0xfaeaad7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::basic_string, std::__1::allocator>::operator=[abi:v15000](std::__1::basic_string, std::__1::allocator>&&) build_docker/./contrib/llvm-project/libcxx/include/string:2562:5 (clickhouse+0xfaeaad7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeaad7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #18 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #19 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #20 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #21 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #22 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #23 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #24 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Previous read of size 8 at 0x7b540000eb18 by thread T255 (mutexes: write M0): (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::basic_string, std::__1::allocator>::basic_string(std::__1::basic_string, std::__1::allocator> const&) build_docker/./contrib/llvm-project/libcxx/include/string:2013:26 (clickhouse+0xfad7059) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:60 (clickhouse+0xfad7059) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7059) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7059) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7059) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7059) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Mutex M0 (0x7ffd9bec1d88) created at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Thread T2 'TCPHandler' (tid=9, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in __tsan_memcpy (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:WARNING: ThreadSanitizer: data race (pid=1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Write of size 1 at 0x7b540000ec1f by thread T2: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 std::__1::basic_string, std::__1::allocator>::__set_short_size[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/string:1570:37 (clickhouse+0xfaeaae0) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::basic_string, std::__1::allocator>::__move_assign[abi:v15000](std::__1::basic_string, std::__1::allocator>&, std::__1::integral_constant) build_docker/./contrib/llvm-project/libcxx/include/string:2551:11 (clickhouse+0xfaeaae0) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::basic_string, std::__1::allocator>::operator=[abi:v15000](std::__1::basic_string, std::__1::allocator>&&) build_docker/./contrib/llvm-project/libcxx/include/string:2562:5 (clickhouse+0xfaeaae0) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeaae0) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #18 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #19 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #20 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #21 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #22 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #23 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #24 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Previous read of size 8 at 0x7b540000ec18 by thread T255 (mutexes: write M0): (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::basic_string, std::__1::allocator>::basic_string(std::__1::basic_string, std::__1::allocator> const&) build_docker/./contrib/llvm-project/libcxx/include/string:2013:26 (clickhouse+0xfad7059) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:60 (clickhouse+0xfad7059) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7059) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7059) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7059) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7059) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Mutex M0 (0x7ffd9bec1d88) created at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Thread T2 'TCPHandler' (tid=9, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/string:1570:37 in std::__1::basic_string, std::__1::allocator>::__set_short_size[abi:v15000](unsigned long) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:WARNING: ThreadSanitizer: data race (pid=1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Write of size 1 at 0x7b540000ec08 by thread T2: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 std::__1::char_traits::assign(char&, char const&) build_docker/./contrib/llvm-project/libcxx/include/__string/char_traits.h:198:73 (clickhouse+0xfaeaaed) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::basic_string, std::__1::allocator>::__move_assign[abi:v15000](std::__1::basic_string, std::__1::allocator>&, std::__1::integral_constant) build_docker/./contrib/llvm-project/libcxx/include/string:2552:5 (clickhouse+0xfaeaaed) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::basic_string, std::__1::allocator>::operator=[abi:v15000](std::__1::basic_string, std::__1::allocator>&&) build_docker/./contrib/llvm-project/libcxx/include/string:2562:5 (clickhouse+0xfaeaaed) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeaaed) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #18 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #19 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #20 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #21 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #22 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #23 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #24 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Previous read of size 8 at 0x7b540000ec08 by thread T255 (mutexes: write M0): (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::basic_string, std::__1::allocator>::basic_string(std::__1::basic_string, std::__1::allocator> const&) build_docker/./contrib/llvm-project/libcxx/include/string:2013:26 (clickhouse+0xfad7059) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:60 (clickhouse+0xfad7059) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7059) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7059) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7059) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7059) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Mutex M0 (0x7ffd9bec1d88) created at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Thread T2 'TCPHandler' (tid=9, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__string/char_traits.h:198:73 in std::__1::char_traits::assign(char&, char const&) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:WARNING: ThreadSanitizer: data race (pid=1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Write of size 8 at 0x7b540000ec38 by thread T2: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 std::__1::unique_ptr>::release[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296:20 (clickhouse+0xfaeab70) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:15 (clickhouse+0xfaeab70) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab70) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #18 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #19 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #20 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #21 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #22 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #23 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Previous read of size 8 at 0x7b540000ec38 by thread T255 (mutexes: write M0): (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 std::__1::unique_ptr>::operator->[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 (clickhouse+0xfad70f2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:44 (clickhouse+0xfad70f2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad70f2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad70f2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad70f2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad70f2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad70f2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Mutex M0 (0x7ffd9bec1d88) created at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Thread T2 'TCPHandler' (tid=9, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296:20 in std::__1::unique_ptr>::release[abi:v15000]() (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:WARNING: ThreadSanitizer: data race (pid=1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Write of size 8 at 0x7b540000eb48 by thread T2: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 (clickhouse+0xfaeab84) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab84) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab84) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #18 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #19 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #20 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #21 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #22 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #23 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Previous read of size 8 at 0x7b540000eb48 by thread T255 (mutexes: write M0): (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 std::__1::unique_ptr>::operator->[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 (clickhouse+0xfad70f2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:44 (clickhouse+0xfad70f2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad70f2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad70f2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad70f2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad70f2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad70f2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Mutex M0 (0x7ffd9bec1d88) created at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Thread T2 'TCPHandler' (tid=9, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 in std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:WARNING: ThreadSanitizer: data race (pid=1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Write of size 8 at 0x7b0400002238 by thread T2: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 (clickhouse+0x1af11474) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11474) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11474) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11474) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaeab9e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaeab9e) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab9e) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab9e) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #18 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #19 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #20 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #21 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #22 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #23 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #24 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #25 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #26 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #27 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #28 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Previous read of size 8 at 0x7b0400002238 by thread T255 (mutexes: write M0): (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 std::__1::unique_ptr>::operator->[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 (clickhouse+0x1af1169a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:53 (clickhouse+0x1af1169a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #18 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #19 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #20 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #21 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #22 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #23 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #24 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #25 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #26 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #27 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Location is heap block of size 16 at 0x7b0400002230 allocated by main thread: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::__unique_if::__unique_single std::__1::make_unique[abi:v15000]>>(std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:28 (clickhouse+0x1af10d46) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 DB::ProtocolServerAdapter::ProtocolServerAdapter(std::__1::basic_string, std::__1::allocator> const&, char const*, std::__1::basic_string, std::__1::allocator> const&, std::__1::unique_ptr>) build_docker/./src/Server/ProtocolServerAdapter.cpp:36:12 (clickhouse+0x1af10d46) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0::operator()(unsigned short) const build_docker/./programs/server/Server.cpp:2125:24 (clickhouse+0xfadbd92) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0&, unsigned short>(DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0&, unsigned short&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadbd92) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 DB::ProtocolServerAdapter std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0&, unsigned short>(DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0&, unsigned short&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfadbd92) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0, DB::ProtocolServerAdapter (unsigned short)>::operator()[abi:v15000](unsigned short&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadbd92) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::ProtocolServerAdapter std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0, DB::ProtocolServerAdapter (unsigned short)>>(std::__1::__function::__policy_storage const*, unsigned short) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadbd92) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 std::__1::__function::__policy_func::operator()[abi:v15000](unsigned short&&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfaad3f0) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 std::__1::function::operator()(unsigned short) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfaad3f0) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:27 (clickhouse+0xfaad3f0) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2118:13 (clickhouse+0xfacb5a2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Mutex M0 (0x7ffd9bec1d88) created at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Thread T2 'TCPHandler' (tid=9, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 in std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:WARNING: ThreadSanitizer: data race (pid=1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Write of size 8 at 0x7b4000004418 by thread T2: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 Poco::Net::TCPServerDispatcher::~TCPServerDispatcher() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:78:1 (clickhouse+0x1f45d9c6) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 Poco::Net::TCPServerDispatcher::release() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:90:18 (clickhouse+0x1f45da5a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 Poco::Net::TCPServer::~TCPServer() build_docker/./base/poco/Net/src/TCPServer.cpp:91:17 (clickhouse+0x1f45ca05) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af44e01) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af44e01) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaeab9e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaeab9e) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab9e) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab9e) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #18 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #19 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #20 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #21 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #22 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #23 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #24 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #25 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #26 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #27 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #28 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #29 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #30 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #31 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #32 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #33 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #34 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #35 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Previous atomic read of size 4 at 0x7b4000004418 by thread T255 (mutexes: write M0): (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 int std::__1::__cxx_atomic_load[abi:v15000](std::__1::__cxx_atomic_base_impl const*, std::__1::memory_order) build_docker/./contrib/llvm-project/libcxx/include/atomic:958:12 (clickhouse+0x1f45e740) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::__atomic_base::load[abi:v15000](std::__1::memory_order) const build_docker/./contrib/llvm-project/libcxx/include/atomic:1588:17 (clickhouse+0x1f45e740) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::__atomic_base::operator int[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/atomic:1592:53 (clickhouse+0x1f45e740) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 Poco::Net::TCPServerDispatcher::currentThreads() const build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:182:9 (clickhouse+0x1f45e740) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:23 (clickhouse+0x1f45cf83) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #18 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #19 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #20 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #21 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #22 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #23 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #24 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #25 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #26 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #27 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #28 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #29 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #30 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #31 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Mutex M0 (0x7ffd9bec1d88) created at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Thread T2 'TCPHandler' (tid=9, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:WARNING: ThreadSanitizer: data race (pid=1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Write of size 8 at 0x7b4400027b18 by thread T2: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af44e0e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaeab9e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaeab9e) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab9e) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab9e) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #18 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #19 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #20 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #21 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #22 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #23 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #24 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #25 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #26 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #27 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #28 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #29 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #30 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #31 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Previous read of size 8 at 0x7b4400027b18 by thread T255 (mutexes: write M0): (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:9 (clickhouse+0x1f45cf7a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #18 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #19 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #20 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #21 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #22 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #23 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #24 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #25 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #26 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #27 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Mutex M0 (0x7ffd9bec1d88) created at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Thread T2 'TCPHandler' (tid=9, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:WARNING: ThreadSanitizer: data race (pid=1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Write of size 8 at 0x7b0400002230 by thread T2: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af114a2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaeab9e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaeab9e) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab9e) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab9e) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #18 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #19 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #20 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #21 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #22 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #23 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #24 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #25 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #26 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Previous read of size 8 at 0x7b0400002230 by thread T255 (mutexes: write M0): (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad70fe) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad70fe) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad70fe) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad70fe) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad70fe) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad70fe) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #18 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #19 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #20 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #21 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #22 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #23 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #24 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #25 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Mutex M0 (0x7ffd9bec1d88) created at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Thread T2 'TCPHandler' (tid=9, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:LLVMSymbolizer: error reading file: No such file or directory (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:WARNING: ThreadSanitizer: data race (pid=1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Read of size 8 at 0x7ffd9bec2190 by thread T255 (mutexes: write M0): (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 std::__1::vector>::size[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/vector:537:46 (clickhouse+0xfad6d61) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:756:77 (clickhouse+0xfad6d61) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad6d61) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad6d61) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad6d61) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad6d61) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #18 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #19 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #20 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #21 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #22 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #23 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #24 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #25 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Previous write of size 8 at 0x7ffd9bec2190 by thread T2: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:834:18 (clickhouse+0xfaea9d8) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea9d8) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea9d8) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #18 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #19 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #20 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #21 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #22 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Location is stack of main thread. (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Location is global '??' at 0x7ffd9bea3000 ([stack]+0x1f190) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Mutex M0 (0x7ffd9bec1d88) created at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Thread T2 'TCPHandler' (tid=9, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/vector:537:46 in std::__1::vector>::size[abi:v15000]() const (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:WARNING: ThreadSanitizer: data race (pid=1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Read of size 1 at 0x7b540000eb7f by thread T255 (mutexes: write M0): (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 std::__1::basic_string, std::__1::allocator>::__is_long[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/string:1499:33 (clickhouse+0xfad7042) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::basic_string, std::__1::allocator>::basic_string(std::__1::basic_string, std::__1::allocator> const&) build_docker/./contrib/llvm-project/libcxx/include/string:2012:16 (clickhouse+0xfad7042) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:60 (clickhouse+0xfad7042) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7042) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7042) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7042) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7042) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Previous write of size 8 at 0x7b540000eb78 by thread T2: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::basic_string, std::__1::allocator>::__move_assign[abi:v15000](std::__1::basic_string, std::__1::allocator>&, std::__1::integral_constant) build_docker/./contrib/llvm-project/libcxx/include/string:2547:16 (clickhouse+0xfaeaad7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::basic_string, std::__1::allocator>::operator=[abi:v15000](std::__1::basic_string, std::__1::allocator>&&) build_docker/./contrib/llvm-project/libcxx/include/string:2562:5 (clickhouse+0xfaeaad7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeaad7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2c76) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2c76) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2422:5 (clickhouse+0xfad2c76) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #18 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #19 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #20 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #21 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #22 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #23 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #24 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Mutex M0 (0x7ffd9bec1d88) created at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Thread T2 'TCPHandler' (tid=9, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/string:1499:33 in std::__1::basic_string, std::__1::allocator>::__is_long[abi:v15000]() const (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:WARNING: ThreadSanitizer: data race (pid=1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Read of size 8 at 0x7b540000eb68 by thread T255 (mutexes: write M0): (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::basic_string, std::__1::allocator>::basic_string(std::__1::basic_string, std::__1::allocator> const&) build_docker/./contrib/llvm-project/libcxx/include/string:2013:26 (clickhouse+0xfad7059) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:60 (clickhouse+0xfad7059) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7059) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7059) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7059) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7059) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Previous write of size 1 at 0x7b540000eb68 by thread T2: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 std::__1::char_traits::assign(char&, char const&) build_docker/./contrib/llvm-project/libcxx/include/__string/char_traits.h:198:73 (clickhouse+0xfaeaaed) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::basic_string, std::__1::allocator>::__move_assign[abi:v15000](std::__1::basic_string, std::__1::allocator>&, std::__1::integral_constant) build_docker/./contrib/llvm-project/libcxx/include/string:2552:5 (clickhouse+0xfaeaaed) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::basic_string, std::__1::allocator>::operator=[abi:v15000](std::__1::basic_string, std::__1::allocator>&&) build_docker/./contrib/llvm-project/libcxx/include/string:2562:5 (clickhouse+0xfaeaaed) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeaaed) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2c76) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2c76) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2422:5 (clickhouse+0xfad2c76) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #18 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #19 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #20 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #21 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #22 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #23 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #24 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Mutex M0 (0x7ffd9bec1d88) created at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Thread T2 'TCPHandler' (tid=9, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in __tsan_memcpy (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:WARNING: ThreadSanitizer: data race (pid=1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Read of size 8 at 0x7b540000eb98 by thread T255 (mutexes: write M0): (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 std::__1::unique_ptr>::operator->[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 (clickhouse+0xfad70f2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:44 (clickhouse+0xfad70f2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad70f2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad70f2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad70f2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad70f2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad70f2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Previous write of size 8 at 0x7b540000eb98 by thread T2: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 (clickhouse+0xfaeab84) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab84) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab84) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2c76) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2c76) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2422:5 (clickhouse+0xfad2c76) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #18 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #19 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #20 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #21 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #22 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #23 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Mutex M0 (0x7ffd9bec1d88) created at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Thread T2 'TCPHandler' (tid=9, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 in std::__1::unique_ptr>::operator->[abi:v15000]() const (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout:WARNING: ThreadSanitizer: data race (pid=1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Read of size 8 at 0x7b540000ebb8 by thread T255 (mutexes: write M0): (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::basic_string, std::__1::allocator>::basic_string(std::__1::basic_string, std::__1::allocator> const&) build_docker/./contrib/llvm-project/libcxx/include/string:2013:26 (clickhouse+0xfad7059) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:60 (clickhouse+0xfad7059) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7059) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7059) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7059) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7059) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Previous write of size 1 at 0x7b540000ebb8 by thread T2: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 std::__1::basic_string, std::__1::allocator>::__move_assign[abi:v15000](std::__1::basic_string, std::__1::allocator>&, std::__1::integral_constant) build_docker/./contrib/llvm-project/libcxx/include/string:2547:16 (clickhouse+0xfaeaad7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::basic_string, std::__1::allocator>::operator=[abi:v15000](std::__1::basic_string, std::__1::allocator>&&) build_docker/./contrib/llvm-project/libcxx/include/string:2562:5 (clickhouse+0xfaeaad7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeaad7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2c76) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2c76) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2422:5 (clickhouse+0xfad2c76) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #13 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #14 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #15 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #16 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #17 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #18 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #19 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #20 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #21 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #22 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #23 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #24 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:20 [ 409 ] DEBUG : Stdout: #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Mutex M0 (0x7ffd9bec1d88) created at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Thread T2 'TCPHandler' (tid=9, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in __tsan_memcpy (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:WARNING: ThreadSanitizer: data race (pid=1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Read of size 8 at 0x7b540000ebe8 by thread T255 (mutexes: write M0): (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 std::__1::unique_ptr>::operator->[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 (clickhouse+0xfad70f2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:44 (clickhouse+0xfad70f2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad70f2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad70f2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad70f2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad70f2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad70f2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Previous write of size 8 at 0x7b540000ebe8 by thread T2: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 std::__1::unique_ptr>::release[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296:20 (clickhouse+0xfaeab70) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:15 (clickhouse+0xfaeab70) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab70) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2c76) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2c76) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2422:5 (clickhouse+0xfad2c76) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #14 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #15 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #16 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #17 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #18 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #19 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #20 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #21 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #22 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #23 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Mutex M0 (0x7ffd9bec1d88) created at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Thread T2 'TCPHandler' (tid=9, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 in std::__1::unique_ptr>::operator->[abi:v15000]() const (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:WARNING: ThreadSanitizer: data race (pid=1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Write of size 8 at 0x7b4000008218 by thread T2: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 Poco::Net::TCPServerDispatcher::~TCPServerDispatcher() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:78:1 (clickhouse+0x1f45d9c6) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 Poco::Net::TCPServerDispatcher::release() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:90:18 (clickhouse+0x1f45da5a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 Poco::Net::TCPServer::~TCPServer() build_docker/./base/poco/Net/src/TCPServer.cpp:91:17 (clickhouse+0x1f45ca05) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af4a441) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 DB::HTTPServer::~HTTPServer() build_docker/./src/Server/HTTP/HTTPServer.cpp:23:1 (clickhouse+0x1af4a441) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 DB::HTTPServer::~HTTPServer() build_docker/./src/Server/HTTP/HTTPServer.cpp:19:1 (clickhouse+0x1af4a479) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaeab9e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaeab9e) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #14 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab9e) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #15 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab9e) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #16 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #17 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #18 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #19 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #20 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #21 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #22 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #23 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #24 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #25 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #26 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #27 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #28 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #29 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #30 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #31 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #32 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #33 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #34 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #35 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #36 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Previous atomic read of size 4 at 0x7b4000008218 by thread T255 (mutexes: write M0): (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 int std::__1::__cxx_atomic_load[abi:v15000](std::__1::__cxx_atomic_base_impl const*, std::__1::memory_order) build_docker/./contrib/llvm-project/libcxx/include/atomic:958:12 (clickhouse+0x1f45e740) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__atomic_base::load[abi:v15000](std::__1::memory_order) const build_docker/./contrib/llvm-project/libcxx/include/atomic:1588:17 (clickhouse+0x1f45e740) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::__atomic_base::operator int[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/atomic:1592:53 (clickhouse+0x1f45e740) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 Poco::Net::TCPServerDispatcher::currentThreads() const build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:182:9 (clickhouse+0x1f45e740) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:23 (clickhouse+0x1f45cf83) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #14 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #15 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #16 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #18 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #19 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #20 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #21 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #22 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #23 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #24 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #25 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #26 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #27 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #28 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #29 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #30 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #31 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Mutex M0 (0x7ffd9bec1d88) created at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Thread T2 'TCPHandler' (tid=9, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:WARNING: ThreadSanitizer: data race (pid=1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Write of size 8 at 0x7b4400070458 by thread T2: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 DB::HTTPServer::~HTTPServer() build_docker/./src/Server/HTTP/HTTPServer.cpp:19:1 (clickhouse+0x1af4a486) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaeab9e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaeab9e) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab9e) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab9e) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #14 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #15 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #16 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #17 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #18 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #19 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #20 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #21 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #22 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #23 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #24 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #25 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #26 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #27 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #28 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #29 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #30 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #31 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Previous read of size 8 at 0x7b4400070458 by thread T255 (mutexes: write M0): (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:9 (clickhouse+0x1f45cf7a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #14 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #15 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #16 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #18 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #19 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #20 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #21 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #22 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #23 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #24 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #25 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #26 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #27 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Mutex M0 (0x7ffd9bec1d88) created at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Thread T2 'TCPHandler' (tid=9, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:WARNING: ThreadSanitizer: data race (pid=1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Write of size 8 at 0x7b0400003968 by thread T2: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 (clickhouse+0x1af11474) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11474) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11474) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11474) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaea8e9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::ProtocolServerAdapter::~ProtocolServerAdapter() build_docker/./src/Server/ProtocolServerAdapter.h:18:7 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 void std::__1::__destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:63:13 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 void std::__1::destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:88:5 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 void std::__1::allocator_traits>::destroy[abi:v15000](std::__1::allocator&, DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:317:9 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:833:9 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #14 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #15 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #16 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #17 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #18 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #19 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #20 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #21 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #22 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #23 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #24 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #25 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #26 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #27 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #28 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #29 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #30 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #31 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #32 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #33 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Previous read of size 8 at 0x7b0400003968 by thread T255 (mutexes: write M0): (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 std::__1::unique_ptr>::operator->[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 (clickhouse+0x1af1169a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:53 (clickhouse+0x1af1169a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #14 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #15 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #16 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #18 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #19 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #20 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #21 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #22 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #23 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #24 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #25 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #26 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #27 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Location is heap block of size 16 at 0x7b0400003960 allocated by thread T259: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__unique_if::__unique_single std::__1::make_unique[abi:v15000]>>(std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:28 (clickhouse+0x1af10d46) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 DB::ProtocolServerAdapter::ProtocolServerAdapter(std::__1::basic_string, std::__1::allocator> const&, char const*, std::__1::basic_string, std::__1::allocator> const&, std::__1::unique_ptr>) build_docker/./src/Server/ProtocolServerAdapter.cpp:36:12 (clickhouse+0x1af10d46) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7::operator()(unsigned short) const build_docker/./programs/server/Server.cpp:2283:24 (clickhouse+0xfadde91) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7&, unsigned short>(DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7&, unsigned short&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadde91) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 DB::ProtocolServerAdapter std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7&, unsigned short>(DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7&, unsigned short&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfadde91) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7, DB::ProtocolServerAdapter (unsigned short)>::operator()[abi:v15000](unsigned short&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadde91) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::ProtocolServerAdapter std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7, DB::ProtocolServerAdapter (unsigned short)>>(std::__1::__function::__policy_storage const*, unsigned short) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadde91) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 std::__1::__function::__policy_func::operator()[abi:v15000](unsigned short&&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfaad3f0) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 std::__1::function::operator()(unsigned short) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfaad3f0) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:27 (clickhouse+0xfaad3f0) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2277:13 (clickhouse+0xfacc211) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1558:9 (clickhouse+0xfadb99f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb99f) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #14 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb99f) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #15 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb99f) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #16 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb99f) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #17 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917a48) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #18 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917a48) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #19 DB::Context::startServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3832:5 (clickhouse+0x18917a48) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #20 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:627:27 (clickhouse+0x1962ac2f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #21 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #22 DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::__1::shared_ptr, std::__1::function, std::__1::optional const&, std::__1::function) build_docker/./src/Interpreters/executeQuery.cpp:1322:34 (clickhouse+0x19a6a0dd) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #23 DB::DDLWorker::tryExecuteQuery(DB::DDLTaskBase&, std::__1::shared_ptr const&) build_docker/./src/Interpreters/DDLWorker.cpp:483:9 (clickhouse+0x189b873f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #24 DB::DDLWorker::processTask(DB::DDLTaskBase&, std::__1::shared_ptr const&) build_docker/./src/Interpreters/DDLWorker.cpp:646:17 (clickhouse+0x189b611d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #25 DB::DDLWorker::scheduleTasks(bool) build_docker/./src/Interpreters/DDLWorker.cpp:426:13 (clickhouse+0x189b3c32) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #26 DB::DDLWorker::runMainThread() build_docker/./src/Interpreters/DDLWorker.cpp:1126:13 (clickhouse+0x189ad609) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #27 decltype(*std::declval().*std::declval()()) std::__1::__invoke[abi:v15000](void (DB::DDLWorker::*&)(), DB::DDLWorker*&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:359:23 (clickhouse+0x189c60bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #28 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&, 0ul>(void (DB::DDLWorker::*&)(), std::__1::tuple&, std::__1::__tuple_indices<0ul>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0x189c60bf) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #29 decltype(auto) std::__1::apply[abi:v15000]&>(void (DB::DDLWorker::*&)(), std::__1::tuple&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0x189c60bf) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #30 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0x189c60bf) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #31 decltype(std::declval()(std::declval())) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0x189c6001) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #32 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0x189c6001) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #33 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0x189c6001) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #34 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0x189c6001) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #35 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #36 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #37 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #38 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #39 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #40 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #41 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Mutex M0 (0x7ffd9bec1d88) created at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Thread T2 'TCPHandler' (tid=9, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Thread T259 'DDLWorker' (tid=266, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0x189c5e99) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0x189acd6f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::DDLWorker::startup() build_docker/./src/Interpreters/DDLWorker.cpp:126:19 (clickhouse+0x189acd6f) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 DB::Context::setDDLWorker(std::__1::unique_ptr>) build_docker/./src/Interpreters/Context.cpp:2773:17 (clickhouse+0x1890aab5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1877:29 (clickhouse+0xfac210c) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #14 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 in std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:WARNING: ThreadSanitizer: data race (pid=1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Write of size 8 at 0x7b4000008818 by thread T2: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 Poco::Net::TCPServerDispatcher::~TCPServerDispatcher() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:78:1 (clickhouse+0x1f45d9c6) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 Poco::Net::TCPServerDispatcher::release() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:90:18 (clickhouse+0x1f45da5a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 Poco::Net::TCPServer::~TCPServer() build_docker/./base/poco/Net/src/TCPServer.cpp:91:17 (clickhouse+0x1f45ca05) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af44e01) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af44e01) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaea8e9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #14 DB::ProtocolServerAdapter::~ProtocolServerAdapter() build_docker/./src/Server/ProtocolServerAdapter.h:18:7 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #15 void std::__1::__destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:63:13 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #16 void std::__1::destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:88:5 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #17 void std::__1::allocator_traits>::destroy[abi:v15000](std::__1::allocator&, DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:317:9 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #18 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:833:9 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #19 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #20 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #21 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #22 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #23 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #24 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #25 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #26 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #27 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #28 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #29 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #30 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #31 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #32 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #33 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #34 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #35 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #36 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #37 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #38 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #39 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #40 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Previous atomic read of size 4 at 0x7b4000008818 by thread T255 (mutexes: write M0): (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 int std::__1::__cxx_atomic_load[abi:v15000](std::__1::__cxx_atomic_base_impl const*, std::__1::memory_order) build_docker/./contrib/llvm-project/libcxx/include/atomic:958:12 (clickhouse+0x1f45e740) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__atomic_base::load[abi:v15000](std::__1::memory_order) const build_docker/./contrib/llvm-project/libcxx/include/atomic:1588:17 (clickhouse+0x1f45e740) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::__atomic_base::operator int[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/atomic:1592:53 (clickhouse+0x1f45e740) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 Poco::Net::TCPServerDispatcher::currentThreads() const build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:182:9 (clickhouse+0x1f45e740) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:23 (clickhouse+0x1f45cf83) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #14 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #15 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #16 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #18 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #19 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #20 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #21 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #22 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #23 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #24 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #25 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #26 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #27 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #28 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #29 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #30 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #31 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Mutex M0 (0x7ffd9bec1d88) created at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Thread T2 'TCPHandler' (tid=9, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:WARNING: ThreadSanitizer: data race (pid=1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Write of size 8 at 0x7b4400070f98 by thread T2: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af44e0e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaea8e9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::ProtocolServerAdapter::~ProtocolServerAdapter() build_docker/./src/Server/ProtocolServerAdapter.h:18:7 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 void std::__1::__destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:63:13 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 void std::__1::destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:88:5 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 void std::__1::allocator_traits>::destroy[abi:v15000](std::__1::allocator&, DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:317:9 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #14 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:833:9 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #15 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #16 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #17 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #18 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #19 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #20 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #21 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #22 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #23 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #24 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #25 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #26 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #27 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #28 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #29 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #30 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #31 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #32 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #33 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #34 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #35 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #36 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Previous read of size 8 at 0x7b4400070f98 by thread T255 (mutexes: write M0): (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:9 (clickhouse+0x1f45cf7a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #14 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #15 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #16 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #18 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #19 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #20 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #21 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #22 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #23 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #24 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #25 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #26 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #27 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Mutex M0 (0x7ffd9bec1d88) created at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Thread T2 'TCPHandler' (tid=9, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:WARNING: ThreadSanitizer: data race (pid=1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Write of size 8 at 0x7b0400003960 by thread T2: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af114a2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaea8e9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 DB::ProtocolServerAdapter::~ProtocolServerAdapter() build_docker/./src/Server/ProtocolServerAdapter.h:18:7 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 void std::__1::__destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:63:13 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 void std::__1::destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:88:5 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 void std::__1::allocator_traits>::destroy[abi:v15000](std::__1::allocator&, DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:317:9 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:833:9 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #14 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #15 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #16 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #17 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #18 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #19 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #20 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #21 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #22 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #23 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #24 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #25 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #26 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #27 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #28 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #29 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #30 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #31 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Previous read of size 8 at 0x7b0400003960 by thread T255 (mutexes: write M0): (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad70fe) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad70fe) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad70fe) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad70fe) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad70fe) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad70fe) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #14 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #15 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #16 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #17 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #18 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #19 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #20 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #21 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #22 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #23 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #24 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #25 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Mutex M0 (0x7ffd9bec1d88) created at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Thread T2 'TCPHandler' (tid=9, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:WARNING: ThreadSanitizer: data race (pid=1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Write of size 8 at 0x7b540000ed28 by thread T4: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 (clickhouse+0xfaea8ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0xfaea8ca) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 DB::ProtocolServerAdapter::~ProtocolServerAdapter() build_docker/./src/Server/ProtocolServerAdapter.h:18:7 (clickhouse+0xfaea8ca) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 void std::__1::__destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:63:13 (clickhouse+0xfaea8ca) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 void std::__1::destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:88:5 (clickhouse+0xfaea8ca) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 void std::__1::allocator_traits>::destroy[abi:v15000](std::__1::allocator&, DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:317:9 (clickhouse+0xfaea8ca) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:833:9 (clickhouse+0xfaea8ca) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea8ca) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea8ca) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #14 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #15 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #16 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #17 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #18 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #19 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #20 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #21 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #22 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #23 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #24 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #25 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #26 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #27 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #28 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Previous read of size 8 at 0x7b540000ed28 by thread T255 (mutexes: write M0): (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 std::__1::unique_ptr>::operator->[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 (clickhouse+0xfad70f2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:44 (clickhouse+0xfad70f2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad70f2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad70f2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad70f2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad70f2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad70f2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Mutex M0 (0x7ffd9bec1d88) created at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Thread T4 'TCPHandler' (tid=11, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 in std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:WARNING: ThreadSanitizer: data race (pid=1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Write of size 8 at 0x7b4000009718 by thread T4: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 Poco::Net::TCPServerDispatcher::~TCPServerDispatcher() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:78:1 (clickhouse+0x1f45d9c6) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 Poco::Net::TCPServerDispatcher::release() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:90:18 (clickhouse+0x1f45da5a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 Poco::Net::TCPServer::~TCPServer() build_docker/./base/poco/Net/src/TCPServer.cpp:91:17 (clickhouse+0x1f45ca05) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af4a441) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 DB::HTTPServer::~HTTPServer() build_docker/./src/Server/HTTP/HTTPServer.cpp:23:1 (clickhouse+0x1af4a441) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 DB::HTTPServer::~HTTPServer() build_docker/./src/Server/HTTP/HTTPServer.cpp:19:1 (clickhouse+0x1af4a479) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaea8e9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #14 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #15 DB::ProtocolServerAdapter::~ProtocolServerAdapter() build_docker/./src/Server/ProtocolServerAdapter.h:18:7 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #16 void std::__1::__destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:63:13 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #17 void std::__1::destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:88:5 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #18 void std::__1::allocator_traits>::destroy[abi:v15000](std::__1::allocator&, DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:317:9 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #19 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:833:9 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #20 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #21 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #22 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #23 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #24 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #25 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #26 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #27 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #28 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #29 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #30 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #31 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #32 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #33 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #34 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #35 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #36 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #37 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #38 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #39 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #40 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #41 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Previous atomic read of size 4 at 0x7b4000009718 by thread T255 (mutexes: write M0): (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 int std::__1::__cxx_atomic_load[abi:v15000](std::__1::__cxx_atomic_base_impl const*, std::__1::memory_order) build_docker/./contrib/llvm-project/libcxx/include/atomic:958:12 (clickhouse+0x1f45e740) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__atomic_base::load[abi:v15000](std::__1::memory_order) const build_docker/./contrib/llvm-project/libcxx/include/atomic:1588:17 (clickhouse+0x1f45e740) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::__atomic_base::operator int[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/atomic:1592:53 (clickhouse+0x1f45e740) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 Poco::Net::TCPServerDispatcher::currentThreads() const build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:182:9 (clickhouse+0x1f45e740) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:23 (clickhouse+0x1f45cf83) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #14 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #15 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #16 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #18 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #19 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #20 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #21 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #22 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #23 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #24 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #25 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #26 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #27 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #28 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #29 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #30 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #31 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Mutex M0 (0x7ffd9bec1d88) created at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Thread T4 'TCPHandler' (tid=11, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:WARNING: ThreadSanitizer: data race (pid=1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Write of size 8 at 0x7b4400072d98 by thread T4: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 DB::HTTPServer::~HTTPServer() build_docker/./src/Server/HTTP/HTTPServer.cpp:19:1 (clickhouse+0x1af4a486) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaea8e9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::ProtocolServerAdapter::~ProtocolServerAdapter() build_docker/./src/Server/ProtocolServerAdapter.h:18:7 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 void std::__1::__destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:63:13 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 void std::__1::destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:88:5 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 void std::__1::allocator_traits>::destroy[abi:v15000](std::__1::allocator&, DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:317:9 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #14 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:833:9 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #15 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #16 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea8e9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #17 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #18 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #19 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #20 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #21 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #22 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #23 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #24 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #25 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #26 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #27 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #28 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #29 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #30 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #31 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #32 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #33 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #34 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #35 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #36 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Previous read of size 8 at 0x7b4400072d98 by thread T255 (mutexes: write M0): (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:9 (clickhouse+0x1f45cf7a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #14 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #15 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #16 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #18 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #19 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #20 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #21 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #22 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #23 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #24 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #25 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #26 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #27 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Mutex M0 (0x7ffd9bec1d88) created at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Thread T4 'TCPHandler' (tid=11, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:WARNING: ThreadSanitizer: data race (pid=1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Read of size 8 at 0x7ffd9bec2190 by thread T255 (mutexes: write M0): (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 std::__1::vector>::size[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/vector:537:46 (clickhouse+0xfad6d61) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:756:77 (clickhouse+0xfad6d61) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad6d61) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad6d61) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad6d61) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad6d61) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #14 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #15 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #16 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #17 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #18 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #19 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #20 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #21 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #22 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #23 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #24 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #25 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Previous write of size 8 at 0x7ffd9bec2190 by thread T4: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:834:18 (clickhouse+0xfaea9d8) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea9d8) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea9d8) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2a19) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2422:5 (clickhouse+0xfad2a19) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #14 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #15 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #16 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #17 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #18 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #19 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #20 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #21 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #22 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Location is stack of main thread. (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Location is global '??' at 0x7ffd9bea3000 ([stack]+0x1f190) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Mutex M0 (0x7ffd9bec1d88) created at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Thread T4 'TCPHandler' (tid=11, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/vector:537:46 in std::__1::vector>::size[abi:v15000]() const (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:WARNING: ThreadSanitizer: data race (pid=1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Write of size 1 at 0x7b540000ebcf by thread T4: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 std::__1::basic_string, std::__1::allocator>::__set_short_size[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/string:1570:37 (clickhouse+0xfaeaae0) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::basic_string, std::__1::allocator>::__move_assign[abi:v15000](std::__1::basic_string, std::__1::allocator>&, std::__1::integral_constant) build_docker/./contrib/llvm-project/libcxx/include/string:2551:11 (clickhouse+0xfaeaae0) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::basic_string, std::__1::allocator>::operator=[abi:v15000](std::__1::basic_string, std::__1::allocator>&&) build_docker/./contrib/llvm-project/libcxx/include/string:2562:5 (clickhouse+0xfaeaae0) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeaae0) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #14 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #15 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #16 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #17 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #18 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #19 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #20 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #21 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #22 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #23 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #24 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Previous read of size 1 at 0x7b540000ebcf by thread T255 (mutexes: write M0): (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 std::__1::basic_string, std::__1::allocator>::__is_long[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/string:1499:33 (clickhouse+0xfad7042) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::basic_string, std::__1::allocator>::basic_string(std::__1::basic_string, std::__1::allocator> const&) build_docker/./contrib/llvm-project/libcxx/include/string:2012:16 (clickhouse+0xfad7042) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:60 (clickhouse+0xfad7042) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7042) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7042) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7042) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7042) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Mutex M0 (0x7ffd9bec1d88) created at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Thread T4 'TCPHandler' (tid=11, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout: (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/string:1570:37 in std::__1::basic_string, std::__1::allocator>::__set_short_size[abi:v15000](unsigned long) (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:================== (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:ThreadSanitizer: reported 26 warnings (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : grep result ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b540000eb18 by thread T2: #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::basic_string, std::__1::allocator>::__move_assign[abi:v15000](std::__1::basic_string, std::__1::allocator>&, std::__1::integral_constant) build_docker/./contrib/llvm-project/libcxx/include/string:2547:16 (clickhouse+0xfaeaad7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::basic_string, std::__1::allocator>::operator=[abi:v15000](std::__1::basic_string, std::__1::allocator>&&) build_docker/./contrib/llvm-project/libcxx/include/string:2562:5 (clickhouse+0xfaeaad7) #3 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeaad7) #4 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) #6 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #9 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #11 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #12 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #14 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #15 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #19 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous read of size 8 at 0x7b540000eb18 by thread T255 (mutexes: write M0): #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::basic_string, std::__1::allocator>::basic_string(std::__1::basic_string, std::__1::allocator> const&) build_docker/./contrib/llvm-project/libcxx/include/string:2013:26 (clickhouse+0xfad7059) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:60 (clickhouse+0xfad7059) #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7059) #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7059) #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7059) #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7059) #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in __tsan_memcpy ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 1 at 0x7b540000ec1f by thread T2: #0 std::__1::basic_string, std::__1::allocator>::__set_short_size[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/string:1570:37 (clickhouse+0xfaeaae0) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::basic_string, std::__1::allocator>::__move_assign[abi:v15000](std::__1::basic_string, std::__1::allocator>&, std::__1::integral_constant) build_docker/./contrib/llvm-project/libcxx/include/string:2551:11 (clickhouse+0xfaeaae0) #2 std::__1::basic_string, std::__1::allocator>::operator=[abi:v15000](std::__1::basic_string, std::__1::allocator>&&) build_docker/./contrib/llvm-project/libcxx/include/string:2562:5 (clickhouse+0xfaeaae0) #3 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeaae0) #4 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) #6 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #9 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #11 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #12 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #14 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #15 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #19 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous read of size 8 at 0x7b540000ec18 by thread T255 (mutexes: write M0): #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::basic_string, std::__1::allocator>::basic_string(std::__1::basic_string, std::__1::allocator> const&) build_docker/./contrib/llvm-project/libcxx/include/string:2013:26 (clickhouse+0xfad7059) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:60 (clickhouse+0xfad7059) #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7059) #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7059) #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7059) #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7059) #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/string:1570:37 in std::__1::basic_string, std::__1::allocator>::__set_short_size[abi:v15000](unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 1 at 0x7b540000ec08 by thread T2: #0 std::__1::char_traits::assign(char&, char const&) build_docker/./contrib/llvm-project/libcxx/include/__string/char_traits.h:198:73 (clickhouse+0xfaeaaed) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::basic_string, std::__1::allocator>::__move_assign[abi:v15000](std::__1::basic_string, std::__1::allocator>&, std::__1::integral_constant) build_docker/./contrib/llvm-project/libcxx/include/string:2552:5 (clickhouse+0xfaeaaed) #2 std::__1::basic_string, std::__1::allocator>::operator=[abi:v15000](std::__1::basic_string, std::__1::allocator>&&) build_docker/./contrib/llvm-project/libcxx/include/string:2562:5 (clickhouse+0xfaeaaed) #3 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeaaed) #4 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) #6 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #9 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #11 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #12 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #14 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #15 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #19 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous read of size 8 at 0x7b540000ec08 by thread T255 (mutexes: write M0): #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::basic_string, std::__1::allocator>::basic_string(std::__1::basic_string, std::__1::allocator> const&) build_docker/./contrib/llvm-project/libcxx/include/string:2013:26 (clickhouse+0xfad7059) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:60 (clickhouse+0xfad7059) #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7059) #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7059) #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7059) #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7059) #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__string/char_traits.h:198:73 in std::__1::char_traits::assign(char&, char const&) ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b540000ec38 by thread T2: #0 std::__1::unique_ptr>::release[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296:20 (clickhouse+0xfaeab70) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:15 (clickhouse+0xfaeab70) #2 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab70) #3 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) #5 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) #6 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #8 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #9 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #10 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #11 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #13 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #14 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #19 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous read of size 8 at 0x7b540000ec38 by thread T255 (mutexes: write M0): #0 std::__1::unique_ptr>::operator->[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 (clickhouse+0xfad70f2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:44 (clickhouse+0xfad70f2) #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad70f2) #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad70f2) #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad70f2) #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad70f2) #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad70f2) #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296:20 in std::__1::unique_ptr>::release[abi:v15000]() ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b540000eb48 by thread T2: #0 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 (clickhouse+0xfaeab84) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab84) #2 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab84) #3 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) #5 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) #6 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #8 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #9 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #10 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #11 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #13 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #14 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #19 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous read of size 8 at 0x7b540000eb48 by thread T255 (mutexes: write M0): #0 std::__1::unique_ptr>::operator->[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 (clickhouse+0xfad70f2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:44 (clickhouse+0xfad70f2) #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad70f2) #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad70f2) #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad70f2) #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad70f2) #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad70f2) #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 in std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b0400002238 by thread T2: #0 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 (clickhouse+0x1af11474) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11474) #2 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11474) #3 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11474) #4 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaeab9e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaeab9e) #6 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab9e) #7 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab9e) #8 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) #10 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) #11 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #13 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #14 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #15 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #16 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #18 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #19 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #26 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #27 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #28 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous read of size 8 at 0x7b0400002238 by thread T255 (mutexes: write M0): #0 std::__1::unique_ptr>::operator->[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 (clickhouse+0x1af1169a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:53 (clickhouse+0x1af1169a) #2 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) #5 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) #7 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) #8 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #11 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #15 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #16 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #18 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #19 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #20 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #21 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #23 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #24 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #26 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #27 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Location is heap block of size 16 at 0x7b0400002230 allocated by main thread: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__unique_if::__unique_single std::__1::make_unique[abi:v15000]>>(std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:28 (clickhouse+0x1af10d46) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 DB::ProtocolServerAdapter::ProtocolServerAdapter(std::__1::basic_string, std::__1::allocator> const&, char const*, std::__1::basic_string, std::__1::allocator> const&, std::__1::unique_ptr>) build_docker/./src/Server/ProtocolServerAdapter.cpp:36:12 (clickhouse+0x1af10d46) #3 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0::operator()(unsigned short) const build_docker/./programs/server/Server.cpp:2125:24 (clickhouse+0xfadbd92) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0&, unsigned short>(DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0&, unsigned short&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadbd92) #5 DB::ProtocolServerAdapter std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0&, unsigned short>(DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0&, unsigned short&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfadbd92) #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0, DB::ProtocolServerAdapter (unsigned short)>::operator()[abi:v15000](unsigned short&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadbd92) #7 DB::ProtocolServerAdapter std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0, DB::ProtocolServerAdapter (unsigned short)>>(std::__1::__function::__policy_storage const*, unsigned short) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadbd92) #8 std::__1::__function::__policy_func::operator()[abi:v15000](unsigned short&&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfaad3f0) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 std::__1::function::operator()(unsigned short) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfaad3f0) #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:27 (clickhouse+0xfaad3f0) #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2118:13 (clickhouse+0xfacb5a2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 in std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b4000004418 by thread T2: #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::Net::TCPServerDispatcher::~TCPServerDispatcher() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:78:1 (clickhouse+0x1f45d9c6) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Net::TCPServerDispatcher::release() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:90:18 (clickhouse+0x1f45da5a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::Net::TCPServer::~TCPServer() build_docker/./base/poco/Net/src/TCPServer.cpp:91:17 (clickhouse+0x1f45ca05) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af44e01) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af44e01) #6 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) #8 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) #9 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #10 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #11 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaeab9e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaeab9e) #13 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab9e) #14 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab9e) #15 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) #17 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) #18 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #19 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #20 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #21 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #22 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #23 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #25 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #26 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #27 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #28 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #29 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #30 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #31 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #32 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #33 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #34 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #35 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous atomic read of size 4 at 0x7b4000004418 by thread T255 (mutexes: write M0): #0 int std::__1::__cxx_atomic_load[abi:v15000](std::__1::__cxx_atomic_base_impl const*, std::__1::memory_order) build_docker/./contrib/llvm-project/libcxx/include/atomic:958:12 (clickhouse+0x1f45e740) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__atomic_base::load[abi:v15000](std::__1::memory_order) const build_docker/./contrib/llvm-project/libcxx/include/atomic:1588:17 (clickhouse+0x1f45e740) #2 std::__1::__atomic_base::operator int[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/atomic:1592:53 (clickhouse+0x1f45e740) #3 Poco::Net::TCPServerDispatcher::currentThreads() const build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:182:9 (clickhouse+0x1f45e740) #4 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:23 (clickhouse+0x1f45cf83) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) #9 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) #11 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) #12 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #14 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #15 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #18 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #19 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #20 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #21 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #22 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #23 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #24 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #25 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #26 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #27 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #28 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #29 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #30 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #31 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b4400027b18 by thread T2: #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af44e0e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) #4 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #6 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #7 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaeab9e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaeab9e) #9 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab9e) #10 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab9e) #11 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) #13 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) #14 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #16 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #17 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #18 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #19 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #21 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #22 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #26 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #27 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #28 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #29 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #30 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #31 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous read of size 8 at 0x7b4400027b18 by thread T255 (mutexes: write M0): #0 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:9 (clickhouse+0x1f45cf7a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) #5 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) #7 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) #8 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #11 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #15 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #16 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #18 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #19 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #20 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #21 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #23 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #24 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #26 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #27 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b0400002230 by thread T2: #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af114a2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaeab9e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaeab9e) #4 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab9e) #5 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab9e) #6 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) #8 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) #9 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #11 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #12 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #13 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #14 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #16 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #17 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #19 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #26 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous read of size 8 at 0x7b0400002230 by thread T255 (mutexes: write M0): #0 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad70fe) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad70fe) #2 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad70fe) #3 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad70fe) #4 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad70fe) #5 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad70fe) #6 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #8 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #12 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #14 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #15 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #16 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #17 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #18 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #19 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #21 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #22 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #24 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #25 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) ================== LLVMSymbolizer: error reading file: No such file or directory ================== WARNING: ThreadSanitizer: data race (pid=1) Read of size 8 at 0x7ffd9bec2190 by thread T255 (mutexes: write M0): #0 std::__1::vector>::size[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/vector:537:46 (clickhouse+0xfad6d61) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:756:77 (clickhouse+0xfad6d61) #2 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad6d61) #3 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad6d61) #4 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad6d61) #5 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad6d61) #6 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #8 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #12 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #14 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #15 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #16 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #17 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #18 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #19 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #21 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #22 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #24 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #25 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Previous write of size 8 at 0x7ffd9bec2190 by thread T2: #0 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:834:18 (clickhouse+0xfaea9d8) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea9d8) #2 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea9d8) #3 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #7 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #8 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #9 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #10 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #12 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #13 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #19 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Location is stack of main thread. Location is global '??' at 0x7ffd9bea3000 ([stack]+0x1f190) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/vector:537:46 in std::__1::vector>::size[abi:v15000]() const ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Read of size 1 at 0x7b540000eb7f by thread T255 (mutexes: write M0): #0 std::__1::basic_string, std::__1::allocator>::__is_long[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/string:1499:33 (clickhouse+0xfad7042) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::basic_string, std::__1::allocator>::basic_string(std::__1::basic_string, std::__1::allocator> const&) build_docker/./contrib/llvm-project/libcxx/include/string:2012:16 (clickhouse+0xfad7042) #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:60 (clickhouse+0xfad7042) #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7042) #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7042) #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7042) #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7042) #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Previous write of size 8 at 0x7b540000eb78 by thread T2: #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::basic_string, std::__1::allocator>::__move_assign[abi:v15000](std::__1::basic_string, std::__1::allocator>&, std::__1::integral_constant) build_docker/./contrib/llvm-project/libcxx/include/string:2547:16 (clickhouse+0xfaeaad7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::basic_string, std::__1::allocator>::operator=[abi:v15000](std::__1::basic_string, std::__1::allocator>&&) build_docker/./contrib/llvm-project/libcxx/include/string:2562:5 (clickhouse+0xfaeaad7) #3 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeaad7) #4 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2c76) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2c76) #6 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2422:5 (clickhouse+0xfad2c76) #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #9 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #11 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #12 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #14 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #15 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #19 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/string:1499:33 in std::__1::basic_string, std::__1::allocator>::__is_long[abi:v15000]() const ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Read of size 8 at 0x7b540000eb68 by thread T255 (mutexes: write M0): #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::basic_string, std::__1::allocator>::basic_string(std::__1::basic_string, std::__1::allocator> const&) build_docker/./contrib/llvm-project/libcxx/include/string:2013:26 (clickhouse+0xfad7059) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:60 (clickhouse+0xfad7059) #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7059) #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7059) #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7059) #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7059) #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Previous write of size 1 at 0x7b540000eb68 by thread T2: #0 std::__1::char_traits::assign(char&, char const&) build_docker/./contrib/llvm-project/libcxx/include/__string/char_traits.h:198:73 (clickhouse+0xfaeaaed) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::basic_string, std::__1::allocator>::__move_assign[abi:v15000](std::__1::basic_string, std::__1::allocator>&, std::__1::integral_constant) build_docker/./contrib/llvm-project/libcxx/include/string:2552:5 (clickhouse+0xfaeaaed) #2 std::__1::basic_string, std::__1::allocator>::operator=[abi:v15000](std::__1::basic_string, std::__1::allocator>&&) build_docker/./contrib/llvm-project/libcxx/include/string:2562:5 (clickhouse+0xfaeaaed) #3 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeaaed) #4 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2c76) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2c76) #6 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2422:5 (clickhouse+0xfad2c76) #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #9 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #11 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #12 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #14 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #15 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #19 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in __tsan_memcpy ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Read of size 8 at 0x7b540000eb98 by thread T255 (mutexes: write M0): #0 std::__1::unique_ptr>::operator->[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 (clickhouse+0xfad70f2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:44 (clickhouse+0xfad70f2) #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad70f2) #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad70f2) #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad70f2) #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad70f2) #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad70f2) #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Previous write of size 8 at 0x7b540000eb98 by thread T2: #0 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 (clickhouse+0xfaeab84) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab84) #2 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab84) #3 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2c76) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2c76) #5 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2422:5 (clickhouse+0xfad2c76) #6 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #8 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #9 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #10 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #11 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #13 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #14 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #19 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 in std::__1::unique_ptr>::operator->[abi:v15000]() const ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Read of size 8 at 0x7b540000ebb8 by thread T255 (mutexes: write M0): #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::basic_string, std::__1::allocator>::basic_string(std::__1::basic_string, std::__1::allocator> const&) build_docker/./contrib/llvm-project/libcxx/include/string:2013:26 (clickhouse+0xfad7059) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:60 (clickhouse+0xfad7059) #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7059) #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7059) #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7059) #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7059) #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Previous write of size 1 at 0x7b540000ebb8 by thread T2: #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::basic_string, std::__1::allocator>::__move_assign[abi:v15000](std::__1::basic_string, std::__1::allocator>&, std::__1::integral_constant) build_docker/./contrib/llvm-project/libcxx/include/string:2547:16 (clickhouse+0xfaeaad7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::basic_string, std::__1::allocator>::operator=[abi:v15000](std::__1::basic_string, std::__1::allocator>&&) build_docker/./contrib/llvm-project/libcxx/include/string:2562:5 (clickhouse+0xfaeaad7) #3 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeaad7) #4 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2c76) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2c76) #6 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2422:5 (clickhouse+0xfad2c76) #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #9 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #11 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #12 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #14 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #15 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #19 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in __tsan_memcpy ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Read of size 8 at 0x7b540000ebe8 by thread T255 (mutexes: write M0): #0 std::__1::unique_ptr>::operator->[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 (clickhouse+0xfad70f2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:44 (clickhouse+0xfad70f2) #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad70f2) #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad70f2) #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad70f2) #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad70f2) #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad70f2) #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Previous write of size 8 at 0x7b540000ebe8 by thread T2: #0 std::__1::unique_ptr>::release[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296:20 (clickhouse+0xfaeab70) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:15 (clickhouse+0xfaeab70) #2 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab70) #3 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2c76) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2c76) #5 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2422:5 (clickhouse+0xfad2c76) #6 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #8 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #9 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #10 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #11 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #13 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #14 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #19 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 in std::__1::unique_ptr>::operator->[abi:v15000]() const ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b4000008218 by thread T2: #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::Net::TCPServerDispatcher::~TCPServerDispatcher() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:78:1 (clickhouse+0x1f45d9c6) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Net::TCPServerDispatcher::release() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:90:18 (clickhouse+0x1f45da5a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::Net::TCPServer::~TCPServer() build_docker/./base/poco/Net/src/TCPServer.cpp:91:17 (clickhouse+0x1f45ca05) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af4a441) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 DB::HTTPServer::~HTTPServer() build_docker/./src/Server/HTTP/HTTPServer.cpp:23:1 (clickhouse+0x1af4a441) #6 DB::HTTPServer::~HTTPServer() build_docker/./src/Server/HTTP/HTTPServer.cpp:19:1 (clickhouse+0x1af4a479) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) #9 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) #10 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #11 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #12 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaeab9e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaeab9e) #14 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab9e) #15 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab9e) #16 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) #18 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) #19 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #21 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #22 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #23 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #24 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #26 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #27 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #28 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #29 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #30 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #31 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #32 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #33 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #34 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #35 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #36 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous atomic read of size 4 at 0x7b4000008218 by thread T255 (mutexes: write M0): #0 int std::__1::__cxx_atomic_load[abi:v15000](std::__1::__cxx_atomic_base_impl const*, std::__1::memory_order) build_docker/./contrib/llvm-project/libcxx/include/atomic:958:12 (clickhouse+0x1f45e740) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__atomic_base::load[abi:v15000](std::__1::memory_order) const build_docker/./contrib/llvm-project/libcxx/include/atomic:1588:17 (clickhouse+0x1f45e740) #2 std::__1::__atomic_base::operator int[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/atomic:1592:53 (clickhouse+0x1f45e740) #3 Poco::Net::TCPServerDispatcher::currentThreads() const build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:182:9 (clickhouse+0x1f45e740) #4 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:23 (clickhouse+0x1f45cf83) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) #9 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) #11 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) #12 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #14 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #15 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #18 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #19 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #20 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #21 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #22 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #23 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #24 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #25 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #26 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #27 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #28 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #29 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #30 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #31 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b4400070458 by thread T2: #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::HTTPServer::~HTTPServer() build_docker/./src/Server/HTTP/HTTPServer.cpp:19:1 (clickhouse+0x1af4a486) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) #4 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #6 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #7 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaeab9e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaeab9e) #9 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab9e) #10 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab9e) #11 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) #13 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) #14 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #16 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #17 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #18 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #19 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #21 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #22 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #26 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #27 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #28 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #29 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #30 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #31 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous read of size 8 at 0x7b4400070458 by thread T255 (mutexes: write M0): #0 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:9 (clickhouse+0x1f45cf7a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) #5 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) #7 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) #8 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #11 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #15 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #16 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #18 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #19 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #20 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #21 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #23 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #24 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #26 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #27 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b0400003968 by thread T2: #0 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 (clickhouse+0x1af11474) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11474) #2 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11474) #3 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11474) #4 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaea8e9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaea8e9) #6 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0xfaea8e9) #7 DB::ProtocolServerAdapter::~ProtocolServerAdapter() build_docker/./src/Server/ProtocolServerAdapter.h:18:7 (clickhouse+0xfaea8e9) #8 void std::__1::__destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:63:13 (clickhouse+0xfaea8e9) #9 void std::__1::destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:88:5 (clickhouse+0xfaea8e9) #10 void std::__1::allocator_traits>::destroy[abi:v15000](std::__1::allocator&, DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:317:9 (clickhouse+0xfaea8e9) #11 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:833:9 (clickhouse+0xfaea8e9) #12 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea8e9) #13 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea8e9) #14 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) #16 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #18 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #19 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #20 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #21 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #23 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #24 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #26 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #27 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #28 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #29 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #30 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #31 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #32 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #33 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous read of size 8 at 0x7b0400003968 by thread T255 (mutexes: write M0): #0 std::__1::unique_ptr>::operator->[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 (clickhouse+0x1af1169a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:53 (clickhouse+0x1af1169a) #2 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) #5 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) #7 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) #8 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #11 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #15 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #16 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #18 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #19 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #20 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #21 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #23 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #24 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #26 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #27 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Location is heap block of size 16 at 0x7b0400003960 allocated by thread T259: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__unique_if::__unique_single std::__1::make_unique[abi:v15000]>>(std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:28 (clickhouse+0x1af10d46) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 DB::ProtocolServerAdapter::ProtocolServerAdapter(std::__1::basic_string, std::__1::allocator> const&, char const*, std::__1::basic_string, std::__1::allocator> const&, std::__1::unique_ptr>) build_docker/./src/Server/ProtocolServerAdapter.cpp:36:12 (clickhouse+0x1af10d46) #3 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7::operator()(unsigned short) const build_docker/./programs/server/Server.cpp:2283:24 (clickhouse+0xfadde91) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7&, unsigned short>(DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7&, unsigned short&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadde91) #5 DB::ProtocolServerAdapter std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7&, unsigned short>(DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7&, unsigned short&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfadde91) #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7, DB::ProtocolServerAdapter (unsigned short)>::operator()[abi:v15000](unsigned short&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadde91) #7 DB::ProtocolServerAdapter std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7, DB::ProtocolServerAdapter (unsigned short)>>(std::__1::__function::__policy_storage const*, unsigned short) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadde91) #8 std::__1::__function::__policy_func::operator()[abi:v15000](unsigned short&&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfaad3f0) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 std::__1::function::operator()(unsigned short) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfaad3f0) #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:27 (clickhouse+0xfaad3f0) #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2277:13 (clickhouse+0xfacc211) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1558:9 (clickhouse+0xfadb99f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb99f) #14 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb99f) #15 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb99f) #16 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb99f) #17 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917a48) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917a48) #19 DB::Context::startServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3832:5 (clickhouse+0x18917a48) #20 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:627:27 (clickhouse+0x1962ac2f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::__1::shared_ptr, std::__1::function, std::__1::optional const&, std::__1::function) build_docker/./src/Interpreters/executeQuery.cpp:1322:34 (clickhouse+0x19a6a0dd) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 DB::DDLWorker::tryExecuteQuery(DB::DDLTaskBase&, std::__1::shared_ptr const&) build_docker/./src/Interpreters/DDLWorker.cpp:483:9 (clickhouse+0x189b873f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 DB::DDLWorker::processTask(DB::DDLTaskBase&, std::__1::shared_ptr const&) build_docker/./src/Interpreters/DDLWorker.cpp:646:17 (clickhouse+0x189b611d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 DB::DDLWorker::scheduleTasks(bool) build_docker/./src/Interpreters/DDLWorker.cpp:426:13 (clickhouse+0x189b3c32) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #26 DB::DDLWorker::runMainThread() build_docker/./src/Interpreters/DDLWorker.cpp:1126:13 (clickhouse+0x189ad609) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #27 decltype(*std::declval().*std::declval()()) std::__1::__invoke[abi:v15000](void (DB::DDLWorker::*&)(), DB::DDLWorker*&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:359:23 (clickhouse+0x189c60bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #28 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&, 0ul>(void (DB::DDLWorker::*&)(), std::__1::tuple&, std::__1::__tuple_indices<0ul>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0x189c60bf) #29 decltype(auto) std::__1::apply[abi:v15000]&>(void (DB::DDLWorker::*&)(), std::__1::tuple&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0x189c60bf) #30 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0x189c60bf) #31 decltype(std::declval()(std::declval())) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0x189c6001) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #32 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0x189c6001) #33 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0x189c6001) #34 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0x189c6001) #35 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #36 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #37 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #38 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #39 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #40 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #41 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T259 'DDLWorker' (tid=266, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0x189c5e99) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0x189acd6f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::DDLWorker::startup() build_docker/./src/Interpreters/DDLWorker.cpp:126:19 (clickhouse+0x189acd6f) #8 DB::Context::setDDLWorker(std::__1::unique_ptr>) build_docker/./src/Interpreters/Context.cpp:2773:17 (clickhouse+0x1890aab5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1877:29 (clickhouse+0xfac210c) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 in std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b4000008818 by thread T2: #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::Net::TCPServerDispatcher::~TCPServerDispatcher() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:78:1 (clickhouse+0x1f45d9c6) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Net::TCPServerDispatcher::release() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:90:18 (clickhouse+0x1f45da5a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::Net::TCPServer::~TCPServer() build_docker/./base/poco/Net/src/TCPServer.cpp:91:17 (clickhouse+0x1f45ca05) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af44e01) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af44e01) #6 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) #8 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) #9 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #10 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #11 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaea8e9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaea8e9) #13 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0xfaea8e9) #14 DB::ProtocolServerAdapter::~ProtocolServerAdapter() build_docker/./src/Server/ProtocolServerAdapter.h:18:7 (clickhouse+0xfaea8e9) #15 void std::__1::__destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:63:13 (clickhouse+0xfaea8e9) #16 void std::__1::destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:88:5 (clickhouse+0xfaea8e9) #17 void std::__1::allocator_traits>::destroy[abi:v15000](std::__1::allocator&, DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:317:9 (clickhouse+0xfaea8e9) #18 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:833:9 (clickhouse+0xfaea8e9) #19 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea8e9) #20 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea8e9) #21 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) #23 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #25 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #26 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #27 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #28 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #29 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #30 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #31 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #32 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #33 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #34 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #35 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #36 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #37 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #38 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #39 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #40 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous atomic read of size 4 at 0x7b4000008818 by thread T255 (mutexes: write M0): #0 int std::__1::__cxx_atomic_load[abi:v15000](std::__1::__cxx_atomic_base_impl const*, std::__1::memory_order) build_docker/./contrib/llvm-project/libcxx/include/atomic:958:12 (clickhouse+0x1f45e740) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__atomic_base::load[abi:v15000](std::__1::memory_order) const build_docker/./contrib/llvm-project/libcxx/include/atomic:1588:17 (clickhouse+0x1f45e740) #2 std::__1::__atomic_base::operator int[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/atomic:1592:53 (clickhouse+0x1f45e740) #3 Poco::Net::TCPServerDispatcher::currentThreads() const build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:182:9 (clickhouse+0x1f45e740) #4 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:23 (clickhouse+0x1f45cf83) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) #9 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) #11 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) #12 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #14 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #15 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #18 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #19 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #20 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #21 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #22 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #23 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #24 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #25 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #26 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #27 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #28 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #29 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #30 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #31 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b4400070f98 by thread T2: #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af44e0e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) #4 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #6 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #7 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaea8e9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaea8e9) #9 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0xfaea8e9) #10 DB::ProtocolServerAdapter::~ProtocolServerAdapter() build_docker/./src/Server/ProtocolServerAdapter.h:18:7 (clickhouse+0xfaea8e9) #11 void std::__1::__destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:63:13 (clickhouse+0xfaea8e9) #12 void std::__1::destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:88:5 (clickhouse+0xfaea8e9) #13 void std::__1::allocator_traits>::destroy[abi:v15000](std::__1::allocator&, DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:317:9 (clickhouse+0xfaea8e9) #14 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:833:9 (clickhouse+0xfaea8e9) #15 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea8e9) #16 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea8e9) #17 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) #19 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #21 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #22 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #23 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #24 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #26 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #27 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #28 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #29 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #30 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #31 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #32 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #33 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #34 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #35 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #36 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous read of size 8 at 0x7b4400070f98 by thread T255 (mutexes: write M0): #0 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:9 (clickhouse+0x1f45cf7a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) #5 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) #7 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) #8 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #11 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #15 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #16 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #18 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #19 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #20 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #21 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #23 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #24 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #26 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #27 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b0400003960 by thread T2: #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af114a2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaea8e9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaea8e9) #4 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0xfaea8e9) #5 DB::ProtocolServerAdapter::~ProtocolServerAdapter() build_docker/./src/Server/ProtocolServerAdapter.h:18:7 (clickhouse+0xfaea8e9) #6 void std::__1::__destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:63:13 (clickhouse+0xfaea8e9) #7 void std::__1::destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:88:5 (clickhouse+0xfaea8e9) #8 void std::__1::allocator_traits>::destroy[abi:v15000](std::__1::allocator&, DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:317:9 (clickhouse+0xfaea8e9) #9 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:833:9 (clickhouse+0xfaea8e9) #10 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea8e9) #11 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea8e9) #12 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) #14 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #16 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #17 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #18 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #19 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #21 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #22 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #26 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #27 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #28 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #29 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #30 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #31 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous read of size 8 at 0x7b0400003960 by thread T255 (mutexes: write M0): #0 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad70fe) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad70fe) #2 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad70fe) #3 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad70fe) #4 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad70fe) #5 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad70fe) #6 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #8 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #12 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #14 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #15 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #16 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #17 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #18 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #19 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #21 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #22 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #24 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #25 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b540000ed28 by thread T4: #0 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 (clickhouse+0xfaea8ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0xfaea8ca) #2 DB::ProtocolServerAdapter::~ProtocolServerAdapter() build_docker/./src/Server/ProtocolServerAdapter.h:18:7 (clickhouse+0xfaea8ca) #3 void std::__1::__destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:63:13 (clickhouse+0xfaea8ca) #4 void std::__1::destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:88:5 (clickhouse+0xfaea8ca) #5 void std::__1::allocator_traits>::destroy[abi:v15000](std::__1::allocator&, DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:317:9 (clickhouse+0xfaea8ca) #6 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:833:9 (clickhouse+0xfaea8ca) #7 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea8ca) #8 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea8ca) #9 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) #11 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #13 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #14 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #15 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #16 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #18 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #19 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #26 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #27 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #28 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous read of size 8 at 0x7b540000ed28 by thread T255 (mutexes: write M0): #0 std::__1::unique_ptr>::operator->[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 (clickhouse+0xfad70f2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:44 (clickhouse+0xfad70f2) #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad70f2) #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad70f2) #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad70f2) #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad70f2) #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad70f2) #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T4 'TCPHandler' (tid=11, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 in std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b4000009718 by thread T4: #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::Net::TCPServerDispatcher::~TCPServerDispatcher() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:78:1 (clickhouse+0x1f45d9c6) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Net::TCPServerDispatcher::release() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:90:18 (clickhouse+0x1f45da5a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::Net::TCPServer::~TCPServer() build_docker/./base/poco/Net/src/TCPServer.cpp:91:17 (clickhouse+0x1f45ca05) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af4a441) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 DB::HTTPServer::~HTTPServer() build_docker/./src/Server/HTTP/HTTPServer.cpp:23:1 (clickhouse+0x1af4a441) #6 DB::HTTPServer::~HTTPServer() build_docker/./src/Server/HTTP/HTTPServer.cpp:19:1 (clickhouse+0x1af4a479) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) #9 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) #10 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #11 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #12 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaea8e9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaea8e9) #14 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0xfaea8e9) #15 DB::ProtocolServerAdapter::~ProtocolServerAdapter() build_docker/./src/Server/ProtocolServerAdapter.h:18:7 (clickhouse+0xfaea8e9) #16 void std::__1::__destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:63:13 (clickhouse+0xfaea8e9) #17 void std::__1::destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:88:5 (clickhouse+0xfaea8e9) #18 void std::__1::allocator_traits>::destroy[abi:v15000](std::__1::allocator&, DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:317:9 (clickhouse+0xfaea8e9) #19 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:833:9 (clickhouse+0xfaea8e9) #20 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea8e9) #21 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea8e9) #22 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) #24 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #26 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #27 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #28 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #29 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #30 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #31 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #32 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #33 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #34 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #35 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #36 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #37 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #38 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #39 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #40 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #41 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous atomic read of size 4 at 0x7b4000009718 by thread T255 (mutexes: write M0): #0 int std::__1::__cxx_atomic_load[abi:v15000](std::__1::__cxx_atomic_base_impl const*, std::__1::memory_order) build_docker/./contrib/llvm-project/libcxx/include/atomic:958:12 (clickhouse+0x1f45e740) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__atomic_base::load[abi:v15000](std::__1::memory_order) const build_docker/./contrib/llvm-project/libcxx/include/atomic:1588:17 (clickhouse+0x1f45e740) #2 std::__1::__atomic_base::operator int[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/atomic:1592:53 (clickhouse+0x1f45e740) #3 Poco::Net::TCPServerDispatcher::currentThreads() const build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:182:9 (clickhouse+0x1f45e740) #4 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:23 (clickhouse+0x1f45cf83) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) #9 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) #11 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) #12 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #14 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #15 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #18 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #19 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #20 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #21 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #22 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #23 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #24 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #25 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #26 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #27 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #28 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #29 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #30 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #31 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T4 'TCPHandler' (tid=11, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b4400072d98 by thread T4: #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::HTTPServer::~HTTPServer() build_docker/./src/Server/HTTP/HTTPServer.cpp:19:1 (clickhouse+0x1af4a486) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) #4 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #6 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #7 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaea8e9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaea8e9) #9 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0xfaea8e9) #10 DB::ProtocolServerAdapter::~ProtocolServerAdapter() build_docker/./src/Server/ProtocolServerAdapter.h:18:7 (clickhouse+0xfaea8e9) #11 void std::__1::__destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:63:13 (clickhouse+0xfaea8e9) #12 void std::__1::destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:88:5 (clickhouse+0xfaea8e9) #13 void std::__1::allocator_traits>::destroy[abi:v15000](std::__1::allocator&, DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:317:9 (clickhouse+0xfaea8e9) #14 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:833:9 (clickhouse+0xfaea8e9) #15 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea8e9) #16 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea8e9) #17 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) #19 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #21 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #22 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #23 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #24 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #26 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #27 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #28 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #29 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #30 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #31 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #32 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #33 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #34 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #35 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #36 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous read of size 8 at 0x7b4400072d98 by thread T255 (mutexes: write M0): #0 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:9 (clickhouse+0x1f45cf7a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) #5 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) #7 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) #8 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #11 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #15 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #16 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #18 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #19 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #20 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #21 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #23 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #24 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #26 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #27 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T4 'TCPHandler' (tid=11, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Read of size 8 at 0x7ffd9bec2190 by thread T255 (mutexes: write M0): #0 std::__1::vector>::size[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/vector:537:46 (clickhouse+0xfad6d61) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:756:77 (clickhouse+0xfad6d61) #2 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad6d61) #3 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad6d61) #4 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad6d61) #5 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad6d61) #6 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #8 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #12 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #14 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #15 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #16 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #17 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #18 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #19 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #21 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #22 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #24 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #25 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Previous write of size 8 at 0x7ffd9bec2190 by thread T4: #0 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:834:18 (clickhouse+0xfaea9d8) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea9d8) #2 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea9d8) #3 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2a19) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2422:5 (clickhouse+0xfad2a19) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #7 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #8 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #9 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #10 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #12 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #13 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #19 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Location is stack of main thread. Location is global '??' at 0x7ffd9bea3000 ([stack]+0x1f190) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T4 'TCPHandler' (tid=11, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/vector:537:46 in std::__1::vector>::size[abi:v15000]() const ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 1 at 0x7b540000ebcf by thread T4: #0 std::__1::basic_string, std::__1::allocator>::__set_short_size[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/string:1570:37 (clickhouse+0xfaeaae0) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::basic_string, std::__1::allocator>::__move_assign[abi:v15000](std::__1::basic_string, std::__1::allocator>&, std::__1::integral_constant) build_docker/./contrib/llvm-project/libcxx/include/string:2551:11 (clickhouse+0xfaeaae0) #2 std::__1::basic_string, std::__1::allocator>::operator=[abi:v15000](std::__1::basic_string, std::__1::allocator>&&) build_docker/./contrib/llvm-project/libcxx/include/string:2562:5 (clickhouse+0xfaeaae0) #3 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeaae0) #4 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) #6 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #9 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #11 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #12 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #14 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #15 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #19 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous read of size 1 at 0x7b540000ebcf by thread T255 (mutexes: write M0): #0 std::__1::basic_string, std::__1::allocator>::__is_long[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/string:1499:33 (clickhouse+0xfad7042) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::basic_string, std::__1::allocator>::basic_string(std::__1::basic_string, std::__1::allocator> const&) build_docker/./contrib/llvm-project/libcxx/include/string:2012:16 (clickhouse+0xfad7042) #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:60 (clickhouse+0xfad7042) #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7042) #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7042) #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7042) #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7042) #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T4 'TCPHandler' (tid=11, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/string:1570:37 in std::__1::basic_string, std::__1::allocator>::__set_short_size[abi:v15000](unsigned long) ================== ThreadSanitizer: reported 26 warnings (cluster.py:3897, grep_in_log) 2024-09-24 00:56:21 [ 409 ] ERROR : Sanitizer in instance main_node log ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b540000eb18 by thread T2: #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::basic_string, std::__1::allocator>::__move_assign[abi:v15000](std::__1::basic_string, std::__1::allocator>&, std::__1::integral_constant) build_docker/./contrib/llvm-project/libcxx/include/string:2547:16 (clickhouse+0xfaeaad7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::basic_string, std::__1::allocator>::operator=[abi:v15000](std::__1::basic_string, std::__1::allocator>&&) build_docker/./contrib/llvm-project/libcxx/include/string:2562:5 (clickhouse+0xfaeaad7) #3 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeaad7) #4 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) #6 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #9 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #11 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #12 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #14 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #15 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #19 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous read of size 8 at 0x7b540000eb18 by thread T255 (mutexes: write M0): #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::basic_string, std::__1::allocator>::basic_string(std::__1::basic_string, std::__1::allocator> const&) build_docker/./contrib/llvm-project/libcxx/include/string:2013:26 (clickhouse+0xfad7059) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:60 (clickhouse+0xfad7059) #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7059) #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7059) #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7059) #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7059) #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in __tsan_memcpy ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 1 at 0x7b540000ec1f by thread T2: #0 std::__1::basic_string, std::__1::allocator>::__set_short_size[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/string:1570:37 (clickhouse+0xfaeaae0) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::basic_string, std::__1::allocator>::__move_assign[abi:v15000](std::__1::basic_string, std::__1::allocator>&, std::__1::integral_constant) build_docker/./contrib/llvm-project/libcxx/include/string:2551:11 (clickhouse+0xfaeaae0) #2 std::__1::basic_string, std::__1::allocator>::operator=[abi:v15000](std::__1::basic_string, std::__1::allocator>&&) build_docker/./contrib/llvm-project/libcxx/include/string:2562:5 (clickhouse+0xfaeaae0) #3 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeaae0) #4 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) #6 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #9 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #11 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #12 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #14 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #15 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #19 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous read of size 8 at 0x7b540000ec18 by thread T255 (mutexes: write M0): #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::basic_string, std::__1::allocator>::basic_string(std::__1::basic_string, std::__1::allocator> const&) build_docker/./contrib/llvm-project/libcxx/include/string:2013:26 (clickhouse+0xfad7059) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:60 (clickhouse+0xfad7059) #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7059) #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7059) #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7059) #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7059) #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/string:1570:37 in std::__1::basic_string, std::__1::allocator>::__set_short_size[abi:v15000](unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 1 at 0x7b540000ec08 by thread T2: #0 std::__1::char_traits::assign(char&, char const&) build_docker/./contrib/llvm-project/libcxx/include/__string/char_traits.h:198:73 (clickhouse+0xfaeaaed) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::basic_string, std::__1::allocator>::__move_assign[abi:v15000](std::__1::basic_string, std::__1::allocator>&, std::__1::integral_constant) build_docker/./contrib/llvm-project/libcxx/include/string:2552:5 (clickhouse+0xfaeaaed) #2 std::__1::basic_string, std::__1::allocator>::operator=[abi:v15000](std::__1::basic_string, std::__1::allocator>&&) build_docker/./contrib/llvm-project/libcxx/include/string:2562:5 (clickhouse+0xfaeaaed) #3 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeaaed) #4 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) #6 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #9 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #11 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #12 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #14 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #15 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #19 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous read of size 8 at 0x7b540000ec08 by thread T255 (mutexes: write M0): #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::basic_string, std::__1::allocator>::basic_string(std::__1::basic_string, std::__1::allocator> const&) build_docker/./contrib/llvm-project/libcxx/include/string:2013:26 (clickhouse+0xfad7059) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:60 (clickhouse+0xfad7059) #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7059) #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7059) #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7059) #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7059) #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__string/char_traits.h:198:73 in std::__1::char_traits::assign(char&, char const&) ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b540000ec38 by thread T2: #0 std::__1::unique_ptr>::release[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296:20 (clickhouse+0xfaeab70) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:15 (clickhouse+0xfaeab70) #2 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab70) #3 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) #5 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) #6 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #8 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #9 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #10 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #11 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #13 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #14 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #19 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous read of size 8 at 0x7b540000ec38 by thread T255 (mutexes: write M0): #0 std::__1::unique_ptr>::operator->[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 (clickhouse+0xfad70f2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:44 (clickhouse+0xfad70f2) #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad70f2) #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad70f2) #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad70f2) #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad70f2) #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad70f2) #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296:20 in std::__1::unique_ptr>::release[abi:v15000]() ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b540000eb48 by thread T2: #0 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 (clickhouse+0xfaeab84) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab84) #2 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab84) #3 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) #5 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) #6 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #8 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #9 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #10 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #11 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #13 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #14 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #19 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous read of size 8 at 0x7b540000eb48 by thread T255 (mutexes: write M0): #0 std::__1::unique_ptr>::operator->[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 (clickhouse+0xfad70f2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:44 (clickhouse+0xfad70f2) #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad70f2) #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad70f2) #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad70f2) #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad70f2) #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad70f2) #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 in std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b0400002238 by thread T2: #0 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 (clickhouse+0x1af11474) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11474) #2 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11474) #3 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11474) #4 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaeab9e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaeab9e) #6 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab9e) #7 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab9e) #8 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) #10 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) #11 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #13 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #14 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #15 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #16 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #18 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #19 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #26 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #27 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #28 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous read of size 8 at 0x7b0400002238 by thread T255 (mutexes: write M0): #0 std::__1::unique_ptr>::operator->[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 (clickhouse+0x1af1169a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:53 (clickhouse+0x1af1169a) #2 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) #5 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) #7 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) #8 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #11 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #15 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #16 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #18 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #19 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #20 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #21 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #23 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #24 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #26 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #27 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Location is heap block of size 16 at 0x7b0400002230 allocated by main thread: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__unique_if::__unique_single std::__1::make_unique[abi:v15000]>>(std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:28 (clickhouse+0x1af10d46) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 DB::ProtocolServerAdapter::ProtocolServerAdapter(std::__1::basic_string, std::__1::allocator> const&, char const*, std::__1::basic_string, std::__1::allocator> const&, std::__1::unique_ptr>) build_docker/./src/Server/ProtocolServerAdapter.cpp:36:12 (clickhouse+0x1af10d46) #3 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0::operator()(unsigned short) const build_docker/./programs/server/Server.cpp:2125:24 (clickhouse+0xfadbd92) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0&, unsigned short>(DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0&, unsigned short&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadbd92) #5 DB::ProtocolServerAdapter std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0&, unsigned short>(DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0&, unsigned short&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfadbd92) #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0, DB::ProtocolServerAdapter (unsigned short)>::operator()[abi:v15000](unsigned short&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadbd92) #7 DB::ProtocolServerAdapter std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_0, DB::ProtocolServerAdapter (unsigned short)>>(std::__1::__function::__policy_storage const*, unsigned short) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadbd92) #8 std::__1::__function::__policy_func::operator()[abi:v15000](unsigned short&&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfaad3f0) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 std::__1::function::operator()(unsigned short) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfaad3f0) #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:27 (clickhouse+0xfaad3f0) #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2118:13 (clickhouse+0xfacb5a2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 in std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b4000004418 by thread T2: #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::Net::TCPServerDispatcher::~TCPServerDispatcher() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:78:1 (clickhouse+0x1f45d9c6) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Net::TCPServerDispatcher::release() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:90:18 (clickhouse+0x1f45da5a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::Net::TCPServer::~TCPServer() build_docker/./base/poco/Net/src/TCPServer.cpp:91:17 (clickhouse+0x1f45ca05) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af44e01) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af44e01) #6 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) #8 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) #9 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #10 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #11 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaeab9e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaeab9e) #13 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab9e) #14 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab9e) #15 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) #17 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) #18 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #19 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #20 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #21 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #22 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #23 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #25 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #26 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #27 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #28 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #29 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #30 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #31 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #32 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #33 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #34 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #35 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous atomic read of size 4 at 0x7b4000004418 by thread T255 (mutexes: write M0): #0 int std::__1::__cxx_atomic_load[abi:v15000](std::__1::__cxx_atomic_base_impl const*, std::__1::memory_order) build_docker/./contrib/llvm-project/libcxx/include/atomic:958:12 (clickhouse+0x1f45e740) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__atomic_base::load[abi:v15000](std::__1::memory_order) const build_docker/./contrib/llvm-project/libcxx/include/atomic:1588:17 (clickhouse+0x1f45e740) #2 std::__1::__atomic_base::operator int[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/atomic:1592:53 (clickhouse+0x1f45e740) #3 Poco::Net::TCPServerDispatcher::currentThreads() const build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:182:9 (clickhouse+0x1f45e740) #4 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:23 (clickhouse+0x1f45cf83) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) #9 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) #11 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) #12 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #14 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #15 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #18 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #19 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #20 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #21 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #22 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #23 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #24 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #25 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #26 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #27 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #28 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #29 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #30 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #31 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b4400027b18 by thread T2: #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af44e0e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) #4 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #6 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #7 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaeab9e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaeab9e) #9 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab9e) #10 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab9e) #11 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) #13 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) #14 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #16 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #17 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #18 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #19 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #21 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #22 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #26 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #27 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #28 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #29 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #30 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #31 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous read of size 8 at 0x7b4400027b18 by thread T255 (mutexes: write M0): #0 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:9 (clickhouse+0x1f45cf7a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) #5 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) #7 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) #8 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #11 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #15 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #16 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #18 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #19 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #20 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #21 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #23 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #24 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #26 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #27 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b0400002230 by thread T2: #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af114a2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaeab9e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaeab9e) #4 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab9e) #5 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab9e) #6 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) #8 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) #9 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #11 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #12 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #13 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #14 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #16 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #17 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #19 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #26 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous read of size 8 at 0x7b0400002230 by thread T255 (mutexes: write M0): #0 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad70fe) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad70fe) #2 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad70fe) #3 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad70fe) #4 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad70fe) #5 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad70fe) #6 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #8 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #12 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #14 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #15 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #16 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #17 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #18 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #19 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #21 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #22 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #24 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #25 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) ================== LLVMSymbolizer: error reading file: No such file or directory ================== WARNING: ThreadSanitizer: data race (pid=1) Read of size 8 at 0x7ffd9bec2190 by thread T255 (mutexes: write M0): #0 std::__1::vector>::size[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/vector:537:46 (clickhouse+0xfad6d61) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:756:77 (clickhouse+0xfad6d61) #2 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad6d61) #3 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad6d61) #4 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad6d61) #5 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad6d61) #6 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #8 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #12 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #14 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #15 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #16 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #17 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #18 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #19 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #21 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #22 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #24 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #25 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Previous write of size 8 at 0x7ffd9bec2190 by thread T2: #0 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:834:18 (clickhouse+0xfaea9d8) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea9d8) #2 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea9d8) #3 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #7 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #8 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #9 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #10 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #12 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #13 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #19 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Location is stack of main thread. Location is global '??' at 0x7ffd9bea3000 ([stack]+0x1f190) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/vector:537:46 in std::__1::vector>::size[abi:v15000]() const ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Read of size 1 at 0x7b540000eb7f by thread T255 (mutexes: write M0): #0 std::__1::basic_string, std::__1::allocator>::__is_long[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/string:1499:33 (clickhouse+0xfad7042) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::basic_string, std::__1::allocator>::basic_string(std::__1::basic_string, std::__1::allocator> const&) build_docker/./contrib/llvm-project/libcxx/include/string:2012:16 (clickhouse+0xfad7042) #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:60 (clickhouse+0xfad7042) #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7042) #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7042) #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7042) #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7042) #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Previous write of size 8 at 0x7b540000eb78 by thread T2: #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::basic_string, std::__1::allocator>::__move_assign[abi:v15000](std::__1::basic_string, std::__1::allocator>&, std::__1::integral_constant) build_docker/./contrib/llvm-project/libcxx/include/string:2547:16 (clickhouse+0xfaeaad7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::basic_string, std::__1::allocator>::operator=[abi:v15000](std::__1::basic_string, std::__1::allocator>&&) build_docker/./contrib/llvm-project/libcxx/include/string:2562:5 (clickhouse+0xfaeaad7) #3 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeaad7) #4 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2c76) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2c76) #6 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2422:5 (clickhouse+0xfad2c76) #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #9 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #11 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #12 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #14 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #15 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #19 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/string:1499:33 in std::__1::basic_string, std::__1::allocator>::__is_long[abi:v15000]() const ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Read of size 8 at 0x7b540000eb68 by thread T255 (mutexes: write M0): #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::basic_string, std::__1::allocator>::basic_string(std::__1::basic_string, std::__1::allocator> const&) build_docker/./contrib/llvm-project/libcxx/include/string:2013:26 (clickhouse+0xfad7059) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:60 (clickhouse+0xfad7059) #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7059) #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7059) #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7059) #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7059) #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Previous write of size 1 at 0x7b540000eb68 by thread T2: #0 std::__1::char_traits::assign(char&, char const&) build_docker/./contrib/llvm-project/libcxx/include/__string/char_traits.h:198:73 (clickhouse+0xfaeaaed) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::basic_string, std::__1::allocator>::__move_assign[abi:v15000](std::__1::basic_string, std::__1::allocator>&, std::__1::integral_constant) build_docker/./contrib/llvm-project/libcxx/include/string:2552:5 (clickhouse+0xfaeaaed) #2 std::__1::basic_string, std::__1::allocator>::operator=[abi:v15000](std::__1::basic_string, std::__1::allocator>&&) build_docker/./contrib/llvm-project/libcxx/include/string:2562:5 (clickhouse+0xfaeaaed) #3 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeaaed) #4 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2c76) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2c76) #6 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2422:5 (clickhouse+0xfad2c76) #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #9 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #11 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #12 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #14 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #15 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #19 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in __tsan_memcpy ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Read of size 8 at 0x7b540000eb98 by thread T255 (mutexes: write M0): #0 std::__1::unique_ptr>::operator->[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 (clickhouse+0xfad70f2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:44 (clickhouse+0xfad70f2) #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad70f2) #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad70f2) #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad70f2) #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad70f2) #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad70f2) #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Previous write of size 8 at 0x7b540000eb98 by thread T2: #0 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 (clickhouse+0xfaeab84) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab84) #2 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab84) #3 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2c76) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2c76) #5 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2422:5 (clickhouse+0xfad2c76) #6 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #8 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #9 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #10 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #11 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #13 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #14 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #19 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 in std::__1::unique_ptr>::operator->[abi:v15000]() const ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Read of size 8 at 0x7b540000ebb8 by thread T255 (mutexes: write M0): #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::basic_string, std::__1::allocator>::basic_string(std::__1::basic_string, std::__1::allocator> const&) build_docker/./contrib/llvm-project/libcxx/include/string:2013:26 (clickhouse+0xfad7059) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:60 (clickhouse+0xfad7059) #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7059) #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7059) #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7059) #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7059) #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Previous write of size 1 at 0x7b540000ebb8 by thread T2: #0 __tsan_memcpy (clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::basic_string, std::__1::allocator>::__move_assign[abi:v15000](std::__1::basic_string, std::__1::allocator>&, std::__1::integral_constant) build_docker/./contrib/llvm-project/libcxx/include/string:2547:16 (clickhouse+0xfaeaad7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::basic_string, std::__1::allocator>::operator=[abi:v15000](std::__1::basic_string, std::__1::allocator>&&) build_docker/./contrib/llvm-project/libcxx/include/string:2562:5 (clickhouse+0xfaeaad7) #3 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeaad7) #4 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2c76) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2c76) #6 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2422:5 (clickhouse+0xfad2c76) #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #9 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #11 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #12 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #14 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #15 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #19 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c40200) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in __tsan_memcpy ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Read of size 8 at 0x7b540000ebe8 by thread T255 (mutexes: write M0): #0 std::__1::unique_ptr>::operator->[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 (clickhouse+0xfad70f2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:44 (clickhouse+0xfad70f2) #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad70f2) #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad70f2) #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad70f2) #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad70f2) #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad70f2) #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Previous write of size 8 at 0x7b540000ebe8 by thread T2: #0 std::__1::unique_ptr>::release[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:296:20 (clickhouse+0xfaeab70) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:15 (clickhouse+0xfaeab70) #2 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab70) #3 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2c76) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2c76) #5 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2422:5 (clickhouse+0xfad2c76) #6 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #8 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #9 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #10 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #11 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #13 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #14 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #19 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 in std::__1::unique_ptr>::operator->[abi:v15000]() const ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b4000008218 by thread T2: #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::Net::TCPServerDispatcher::~TCPServerDispatcher() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:78:1 (clickhouse+0x1f45d9c6) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Net::TCPServerDispatcher::release() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:90:18 (clickhouse+0x1f45da5a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::Net::TCPServer::~TCPServer() build_docker/./base/poco/Net/src/TCPServer.cpp:91:17 (clickhouse+0x1f45ca05) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af4a441) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 DB::HTTPServer::~HTTPServer() build_docker/./src/Server/HTTP/HTTPServer.cpp:23:1 (clickhouse+0x1af4a441) #6 DB::HTTPServer::~HTTPServer() build_docker/./src/Server/HTTP/HTTPServer.cpp:19:1 (clickhouse+0x1af4a479) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) #9 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) #10 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #11 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #12 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaeab9e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaeab9e) #14 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab9e) #15 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab9e) #16 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) #18 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) #19 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #21 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #22 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #23 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #24 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #26 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #27 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #28 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #29 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #30 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #31 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #32 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #33 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #34 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #35 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #36 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous atomic read of size 4 at 0x7b4000008218 by thread T255 (mutexes: write M0): #0 int std::__1::__cxx_atomic_load[abi:v15000](std::__1::__cxx_atomic_base_impl const*, std::__1::memory_order) build_docker/./contrib/llvm-project/libcxx/include/atomic:958:12 (clickhouse+0x1f45e740) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__atomic_base::load[abi:v15000](std::__1::memory_order) const build_docker/./contrib/llvm-project/libcxx/include/atomic:1588:17 (clickhouse+0x1f45e740) #2 std::__1::__atomic_base::operator int[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/atomic:1592:53 (clickhouse+0x1f45e740) #3 Poco::Net::TCPServerDispatcher::currentThreads() const build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:182:9 (clickhouse+0x1f45e740) #4 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:23 (clickhouse+0x1f45cf83) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) #9 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) #11 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) #12 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #14 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #15 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #18 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #19 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #20 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #21 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #22 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #23 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #24 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #25 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #26 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #27 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #28 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #29 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #30 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #31 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b4400070458 by thread T2: #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::HTTPServer::~HTTPServer() build_docker/./src/Server/HTTP/HTTPServer.cpp:19:1 (clickhouse+0x1af4a486) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) #4 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #6 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #7 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaeab9e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaeab9e) #9 std::__1::unique_ptr>::operator=[abi:v15000](std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:225:5 (clickhouse+0xfaeab9e) #10 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeab9e) #11 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) #13 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) #14 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #16 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #17 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #18 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #19 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #21 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #22 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #26 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #27 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #28 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #29 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #30 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #31 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous read of size 8 at 0x7b4400070458 by thread T255 (mutexes: write M0): #0 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:9 (clickhouse+0x1f45cf7a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) #5 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) #7 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) #8 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #11 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #15 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #16 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #18 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #19 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #20 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #21 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #23 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #24 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #26 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #27 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b0400003968 by thread T2: #0 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 (clickhouse+0x1af11474) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11474) #2 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11474) #3 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11474) #4 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaea8e9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaea8e9) #6 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0xfaea8e9) #7 DB::ProtocolServerAdapter::~ProtocolServerAdapter() build_docker/./src/Server/ProtocolServerAdapter.h:18:7 (clickhouse+0xfaea8e9) #8 void std::__1::__destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:63:13 (clickhouse+0xfaea8e9) #9 void std::__1::destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:88:5 (clickhouse+0xfaea8e9) #10 void std::__1::allocator_traits>::destroy[abi:v15000](std::__1::allocator&, DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:317:9 (clickhouse+0xfaea8e9) #11 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:833:9 (clickhouse+0xfaea8e9) #12 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea8e9) #13 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea8e9) #14 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) #16 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #18 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #19 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #20 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #21 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #23 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #24 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #26 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #27 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #28 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #29 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #30 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #31 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #32 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #33 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous read of size 8 at 0x7b0400003968 by thread T255 (mutexes: write M0): #0 std::__1::unique_ptr>::operator->[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 (clickhouse+0x1af1169a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:53 (clickhouse+0x1af1169a) #2 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) #5 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) #7 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) #8 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #11 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #15 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #16 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #18 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #19 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #20 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #21 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #23 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #24 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #26 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #27 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Location is heap block of size 16 at 0x7b0400003960 allocated by thread T259: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__unique_if::__unique_single std::__1::make_unique[abi:v15000]>>(std::__1::unique_ptr>&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:28 (clickhouse+0x1af10d46) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 DB::ProtocolServerAdapter::ProtocolServerAdapter(std::__1::basic_string, std::__1::allocator> const&, char const*, std::__1::basic_string, std::__1::allocator> const&, std::__1::unique_ptr>) build_docker/./src/Server/ProtocolServerAdapter.cpp:36:12 (clickhouse+0x1af10d46) #3 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7::operator()(unsigned short) const build_docker/./programs/server/Server.cpp:2283:24 (clickhouse+0xfadde91) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7&, unsigned short>(DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7&, unsigned short&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadde91) #5 DB::ProtocolServerAdapter std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7&, unsigned short>(DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7&, unsigned short&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfadde91) #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7, DB::ProtocolServerAdapter (unsigned short)>::operator()[abi:v15000](unsigned short&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadde91) #7 DB::ProtocolServerAdapter std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&)::$_7, DB::ProtocolServerAdapter (unsigned short)>>(std::__1::__function::__policy_storage const*, unsigned short) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadde91) #8 std::__1::__function::__policy_func::operator()[abi:v15000](unsigned short&&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfaad3f0) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 std::__1::function::operator()(unsigned short) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfaad3f0) #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:27 (clickhouse+0xfaad3f0) #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2277:13 (clickhouse+0xfacc211) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1558:9 (clickhouse+0xfadb99f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb99f) #14 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb99f) #15 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb99f) #16 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_11, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb99f) #17 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917a48) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917a48) #19 DB::Context::startServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3832:5 (clickhouse+0x18917a48) #20 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:627:27 (clickhouse+0x1962ac2f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::__1::shared_ptr, std::__1::function, std::__1::optional const&, std::__1::function) build_docker/./src/Interpreters/executeQuery.cpp:1322:34 (clickhouse+0x19a6a0dd) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 DB::DDLWorker::tryExecuteQuery(DB::DDLTaskBase&, std::__1::shared_ptr const&) build_docker/./src/Interpreters/DDLWorker.cpp:483:9 (clickhouse+0x189b873f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 DB::DDLWorker::processTask(DB::DDLTaskBase&, std::__1::shared_ptr const&) build_docker/./src/Interpreters/DDLWorker.cpp:646:17 (clickhouse+0x189b611d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 DB::DDLWorker::scheduleTasks(bool) build_docker/./src/Interpreters/DDLWorker.cpp:426:13 (clickhouse+0x189b3c32) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #26 DB::DDLWorker::runMainThread() build_docker/./src/Interpreters/DDLWorker.cpp:1126:13 (clickhouse+0x189ad609) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #27 decltype(*std::declval().*std::declval()()) std::__1::__invoke[abi:v15000](void (DB::DDLWorker::*&)(), DB::DDLWorker*&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:359:23 (clickhouse+0x189c60bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #28 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&, 0ul>(void (DB::DDLWorker::*&)(), std::__1::tuple&, std::__1::__tuple_indices<0ul>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0x189c60bf) #29 decltype(auto) std::__1::apply[abi:v15000]&>(void (DB::DDLWorker::*&)(), std::__1::tuple&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0x189c60bf) #30 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0x189c60bf) #31 decltype(std::declval()(std::declval())) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0x189c6001) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #32 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0x189c6001) #33 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0x189c6001) #34 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0x189c6001) #35 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #36 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #37 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #38 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #39 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #40 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #41 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T259 'DDLWorker' (tid=266, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0x189c5e99) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], void (DB::DDLWorker::*)(), DB::DDLWorker*>(void (DB::DDLWorker::*&&)(), DB::DDLWorker*&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0x189acd6f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::DDLWorker::startup() build_docker/./src/Interpreters/DDLWorker.cpp:126:19 (clickhouse+0x189acd6f) #8 DB::Context::setDDLWorker(std::__1::unique_ptr>) build_docker/./src/Interpreters/Context.cpp:2773:17 (clickhouse+0x1890aab5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1877:29 (clickhouse+0xfac210c) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 in std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b4000008818 by thread T2: #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::Net::TCPServerDispatcher::~TCPServerDispatcher() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:78:1 (clickhouse+0x1f45d9c6) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Net::TCPServerDispatcher::release() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:90:18 (clickhouse+0x1f45da5a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::Net::TCPServer::~TCPServer() build_docker/./base/poco/Net/src/TCPServer.cpp:91:17 (clickhouse+0x1f45ca05) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af44e01) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af44e01) #6 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) #8 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) #9 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #10 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #11 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaea8e9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaea8e9) #13 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0xfaea8e9) #14 DB::ProtocolServerAdapter::~ProtocolServerAdapter() build_docker/./src/Server/ProtocolServerAdapter.h:18:7 (clickhouse+0xfaea8e9) #15 void std::__1::__destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:63:13 (clickhouse+0xfaea8e9) #16 void std::__1::destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:88:5 (clickhouse+0xfaea8e9) #17 void std::__1::allocator_traits>::destroy[abi:v15000](std::__1::allocator&, DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:317:9 (clickhouse+0xfaea8e9) #18 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:833:9 (clickhouse+0xfaea8e9) #19 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea8e9) #20 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea8e9) #21 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) #23 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #25 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #26 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #27 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #28 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #29 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #30 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #31 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #32 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #33 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #34 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #35 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #36 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #37 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #38 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #39 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #40 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous atomic read of size 4 at 0x7b4000008818 by thread T255 (mutexes: write M0): #0 int std::__1::__cxx_atomic_load[abi:v15000](std::__1::__cxx_atomic_base_impl const*, std::__1::memory_order) build_docker/./contrib/llvm-project/libcxx/include/atomic:958:12 (clickhouse+0x1f45e740) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__atomic_base::load[abi:v15000](std::__1::memory_order) const build_docker/./contrib/llvm-project/libcxx/include/atomic:1588:17 (clickhouse+0x1f45e740) #2 std::__1::__atomic_base::operator int[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/atomic:1592:53 (clickhouse+0x1f45e740) #3 Poco::Net::TCPServerDispatcher::currentThreads() const build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:182:9 (clickhouse+0x1f45e740) #4 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:23 (clickhouse+0x1f45cf83) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) #9 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) #11 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) #12 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #14 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #15 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #18 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #19 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #20 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #21 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #22 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #23 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #24 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #25 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #26 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #27 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #28 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #29 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #30 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #31 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b4400070f98 by thread T2: #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af44e0e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) #4 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #6 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #7 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaea8e9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaea8e9) #9 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0xfaea8e9) #10 DB::ProtocolServerAdapter::~ProtocolServerAdapter() build_docker/./src/Server/ProtocolServerAdapter.h:18:7 (clickhouse+0xfaea8e9) #11 void std::__1::__destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:63:13 (clickhouse+0xfaea8e9) #12 void std::__1::destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:88:5 (clickhouse+0xfaea8e9) #13 void std::__1::allocator_traits>::destroy[abi:v15000](std::__1::allocator&, DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:317:9 (clickhouse+0xfaea8e9) #14 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:833:9 (clickhouse+0xfaea8e9) #15 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea8e9) #16 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea8e9) #17 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) #19 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #21 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #22 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #23 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #24 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #26 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #27 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #28 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #29 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #30 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #31 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #32 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #33 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #34 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #35 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #36 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous read of size 8 at 0x7b4400070f98 by thread T255 (mutexes: write M0): #0 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:9 (clickhouse+0x1f45cf7a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) #5 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) #7 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) #8 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #11 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #15 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #16 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #18 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #19 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #20 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #21 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #23 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #24 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #26 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #27 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b0400003960 by thread T2: #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af114a2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaea8e9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaea8e9) #4 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0xfaea8e9) #5 DB::ProtocolServerAdapter::~ProtocolServerAdapter() build_docker/./src/Server/ProtocolServerAdapter.h:18:7 (clickhouse+0xfaea8e9) #6 void std::__1::__destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:63:13 (clickhouse+0xfaea8e9) #7 void std::__1::destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:88:5 (clickhouse+0xfaea8e9) #8 void std::__1::allocator_traits>::destroy[abi:v15000](std::__1::allocator&, DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:317:9 (clickhouse+0xfaea8e9) #9 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:833:9 (clickhouse+0xfaea8e9) #10 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea8e9) #11 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea8e9) #12 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) #14 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #16 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #17 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #18 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #19 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #21 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #22 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #26 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #27 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #28 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #29 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #30 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #31 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous read of size 8 at 0x7b0400003960 by thread T255 (mutexes: write M0): #0 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad70fe) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad70fe) #2 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad70fe) #3 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad70fe) #4 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad70fe) #5 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad70fe) #6 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #8 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #12 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #14 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #15 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #16 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #17 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #18 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #19 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #21 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #22 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #24 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #25 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T2 'TCPHandler' (tid=9, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b540000ed28 by thread T4: #0 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 (clickhouse+0xfaea8ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0xfaea8ca) #2 DB::ProtocolServerAdapter::~ProtocolServerAdapter() build_docker/./src/Server/ProtocolServerAdapter.h:18:7 (clickhouse+0xfaea8ca) #3 void std::__1::__destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:63:13 (clickhouse+0xfaea8ca) #4 void std::__1::destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:88:5 (clickhouse+0xfaea8ca) #5 void std::__1::allocator_traits>::destroy[abi:v15000](std::__1::allocator&, DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:317:9 (clickhouse+0xfaea8ca) #6 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:833:9 (clickhouse+0xfaea8ca) #7 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea8ca) #8 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea8ca) #9 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) #11 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #13 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #14 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #15 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #16 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #18 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #19 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #26 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #27 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #28 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous read of size 8 at 0x7b540000ed28 by thread T255 (mutexes: write M0): #0 std::__1::unique_ptr>::operator->[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274:19 (clickhouse+0xfad70f2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:44 (clickhouse+0xfad70f2) #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad70f2) #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad70f2) #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad70f2) #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad70f2) #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad70f2) #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T4 'TCPHandler' (tid=11, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:303:20 in std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b4000009718 by thread T4: #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::Net::TCPServerDispatcher::~TCPServerDispatcher() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:78:1 (clickhouse+0x1f45d9c6) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Net::TCPServerDispatcher::release() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:90:18 (clickhouse+0x1f45da5a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::Net::TCPServer::~TCPServer() build_docker/./base/poco/Net/src/TCPServer.cpp:91:17 (clickhouse+0x1f45ca05) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::TCPServer::~TCPServer() build_docker/./src/Server/TCPServer.h:13:7 (clickhouse+0x1af4a441) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 DB::HTTPServer::~HTTPServer() build_docker/./src/Server/HTTP/HTTPServer.cpp:23:1 (clickhouse+0x1af4a441) #6 DB::HTTPServer::~HTTPServer() build_docker/./src/Server/HTTP/HTTPServer.cpp:19:1 (clickhouse+0x1af4a479) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) #9 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) #10 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #11 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #12 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaea8e9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaea8e9) #14 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0xfaea8e9) #15 DB::ProtocolServerAdapter::~ProtocolServerAdapter() build_docker/./src/Server/ProtocolServerAdapter.h:18:7 (clickhouse+0xfaea8e9) #16 void std::__1::__destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:63:13 (clickhouse+0xfaea8e9) #17 void std::__1::destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:88:5 (clickhouse+0xfaea8e9) #18 void std::__1::allocator_traits>::destroy[abi:v15000](std::__1::allocator&, DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:317:9 (clickhouse+0xfaea8e9) #19 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:833:9 (clickhouse+0xfaea8e9) #20 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea8e9) #21 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea8e9) #22 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) #24 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #26 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #27 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #28 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #29 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #30 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #31 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #32 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #33 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #34 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #35 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #36 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #37 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #38 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #39 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #40 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #41 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous atomic read of size 4 at 0x7b4000009718 by thread T255 (mutexes: write M0): #0 int std::__1::__cxx_atomic_load[abi:v15000](std::__1::__cxx_atomic_base_impl const*, std::__1::memory_order) build_docker/./contrib/llvm-project/libcxx/include/atomic:958:12 (clickhouse+0x1f45e740) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__atomic_base::load[abi:v15000](std::__1::memory_order) const build_docker/./contrib/llvm-project/libcxx/include/atomic:1588:17 (clickhouse+0x1f45e740) #2 std::__1::__atomic_base::operator int[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/atomic:1592:53 (clickhouse+0x1f45e740) #3 Poco::Net::TCPServerDispatcher::currentThreads() const build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:182:9 (clickhouse+0x1f45e740) #4 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:23 (clickhouse+0x1f45cf83) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) #9 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) #11 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) #12 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #14 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #15 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #18 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #19 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #20 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #21 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #22 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #23 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #24 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #25 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #26 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #27 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #28 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #29 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #30 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #31 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T4 'TCPHandler' (tid=11, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 8 at 0x7b4400072d98 by thread T4: #0 operator delete(void*, unsigned long) (clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::HTTPServer::~HTTPServer() build_docker/./src/Server/HTTP/HTTPServer.cpp:19:1 (clickhouse+0x1af4a486) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::default_delete::operator()[abi:v15000](DB::TCPServer*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0x1af11495) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 std::__1::unique_ptr>::reset[abi:v15000](DB::TCPServer*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0x1af11495) #4 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0x1af11495) #5 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #6 DB::ProtocolServerAdapter::TCPServerAdapterImpl::~TCPServerAdapterImpl() build_docker/./src/Server/ProtocolServerAdapter.cpp:15:46 (clickhouse+0x1af11495) #7 std::__1::default_delete::operator()[abi:v15000](DB::ProtocolServerAdapter::Impl*) const build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48:5 (clickhouse+0xfaea8e9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::unique_ptr>::reset[abi:v15000](DB::ProtocolServerAdapter::Impl*) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:305:7 (clickhouse+0xfaea8e9) #9 std::__1::unique_ptr>::~unique_ptr[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259:19 (clickhouse+0xfaea8e9) #10 DB::ProtocolServerAdapter::~ProtocolServerAdapter() build_docker/./src/Server/ProtocolServerAdapter.h:18:7 (clickhouse+0xfaea8e9) #11 void std::__1::__destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:63:13 (clickhouse+0xfaea8e9) #12 void std::__1::destroy_at[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/construct_at.h:88:5 (clickhouse+0xfaea8e9) #13 void std::__1::allocator_traits>::destroy[abi:v15000](std::__1::allocator&, DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:317:9 (clickhouse+0xfaea8e9) #14 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:833:9 (clickhouse+0xfaea8e9) #15 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea8e9) #16 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea8e9) #17 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2ce1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2ce1) #19 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #21 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #22 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #23 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #24 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #26 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #27 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #28 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #29 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #30 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #31 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #32 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #33 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #34 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #35 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #36 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous read of size 8 at 0x7b4400072d98 by thread T255 (mutexes: write M0): #0 Poco::Net::TCPServer::currentThreads() const build_docker/./base/poco/Net/src/TCPServer.cpp:178:9 (clickhouse+0x1f45cf7a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::ProtocolServerAdapter::TCPServerAdapterImpl::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.cpp:22:65 (clickhouse+0x1af116a3) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 DB::ProtocolServerAdapter::currentThreads() const build_docker/./src/Server/ProtocolServerAdapter.h:42:50 (clickhouse+0xfad7107) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:89 (clickhouse+0xfad7107) #4 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7107) #5 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7107) #6 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7107) #7 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7107) #8 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #11 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #15 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #16 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #17 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #18 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #19 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #20 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #21 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #23 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #24 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #25 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #26 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #27 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T4 'TCPHandler' (tid=11, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race (/usr/bin/clickhouse+0x7c838df) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) in operator delete(void*, unsigned long) ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Read of size 8 at 0x7ffd9bec2190 by thread T255 (mutexes: write M0): #0 std::__1::vector>::size[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/vector:537:46 (clickhouse+0xfad6d61) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:756:77 (clickhouse+0xfad6d61) #2 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad6d61) #3 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad6d61) #4 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad6d61) #5 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad6d61) #6 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #8 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #12 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #14 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #15 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #16 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #17 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #18 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #19 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #21 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #22 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #24 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #25 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Previous write of size 8 at 0x7ffd9bec2190 by thread T4: #0 std::__1::vector>::__base_destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:834:18 (clickhouse+0xfaea9d8) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::vector>::__destruct_at_end[abi:v15000](DB::ProtocolServerAdapter*) build_docker/./contrib/llvm-project/libcxx/include/vector:721:9 (clickhouse+0xfaea9d8) #2 std::__1::vector>::erase(std::__1::__wrap_iter, std::__1::__wrap_iter) build_docker/./contrib/llvm-project/libcxx/include/vector:1648:15 (clickhouse+0xfaea9d8) #3 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:7 (clickhouse+0xfad2a19) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2422:5 (clickhouse+0xfad2a19) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #7 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #8 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #9 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #10 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #12 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #13 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #19 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Location is stack of main thread. Location is global '??' at 0x7ffd9bea3000 ([stack]+0x1f190) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T4 'TCPHandler' (tid=11, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/vector:537:46 in std::__1::vector>::size[abi:v15000]() const ================== ================== WARNING: ThreadSanitizer: data race (pid=1) Write of size 1 at 0x7b540000ebcf by thread T4: #0 std::__1::basic_string, std::__1::allocator>::__set_short_size[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/string:1570:37 (clickhouse+0xfaeaae0) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::basic_string, std::__1::allocator>::__move_assign[abi:v15000](std::__1::basic_string, std::__1::allocator>&, std::__1::integral_constant) build_docker/./contrib/llvm-project/libcxx/include/string:2551:11 (clickhouse+0xfaeaae0) #2 std::__1::basic_string, std::__1::allocator>::operator=[abi:v15000](std::__1::basic_string, std::__1::allocator>&&) build_docker/./contrib/llvm-project/libcxx/include/string:2562:5 (clickhouse+0xfaeaae0) #3 DB::ProtocolServerAdapter::operator=(DB::ProtocolServerAdapter&&) build_docker/./src/Server/ProtocolServerAdapter.h:23:78 (clickhouse+0xfaeaae0) #4 std::__1::__wrap_iter std::__1::remove_if, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::__wrap_iter, std::__1::__wrap_iter, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/__algorithm/remove_if.h:34:26 (clickhouse+0xfad2cc2) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 std::__1::vector>::size_type std::__1::erase_if[abi:v15000], std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>>(std::__1::vector>&, std::__1::__bind_front_t>&, DB::ServerType const&) const::$_0, char const*>) build_docker/./contrib/llvm-project/libcxx/include/vector:3306:13 (clickhouse+0xfad2cc2) #6 DB::Server::stopServers(std::__1::vector>&, DB::ServerType const&) const build_docker/./programs/server/Server.cpp:2435:5 (clickhouse+0xfad2cc2) #7 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10::operator()(DB::ServerType const&) const build_docker/./programs/server/Server.cpp:1553:9 (clickhouse+0xfadb8bb) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&>()(std::declval())) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfadb8bb) #9 void std::__1::__invoke_void_return_wrapper::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10&, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfadb8bb) #10 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>::operator()[abi:v15000](DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfadb8bb) #11 void std::__1::__function::__policy_invoker::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_10, void (DB::ServerType const&)>>(std::__1::__function::__policy_storage const*, DB::ServerType const&) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfadb8bb) #12 std::__1::__function::__policy_func::operator()[abi:v15000](DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0x18917b28) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 std::__1::function::operator()(DB::ServerType const&) const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0x18917b28) #14 DB::Context::stopServers(DB::ServerType const&) const build_docker/./src/Interpreters/Context.cpp:3841:5 (clickhouse+0x18917b28) #15 DB::InterpreterSystemQuery::execute() build_docker/./src/Interpreters/InterpreterSystemQuery.cpp:623:27 (clickhouse+0x19629d8d) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) build_docker/./src/Interpreters/executeQuery.cpp:1085:40 (clickhouse+0x19a669e5) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 DB::executeQuery(std::__1::basic_string, std::__1::allocator> const&, std::__1::shared_ptr, bool, DB::QueryProcessingStage::Enum) build_docker/./src/Interpreters/executeQuery.cpp:1224:30 (clickhouse+0x19a62538) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #18 DB::TCPHandler::runImpl() build_docker/./src/Server/TCPHandler.cpp:496:24 (clickhouse+0x1af249ca) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #19 DB::TCPHandler::run() build_docker/./src/Server/TCPHandler.cpp:2159:9 (clickhouse+0x1af3e967) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #20 Poco::Net::TCPServerConnection::start() build_docker/./base/poco/Net/src/TCPServerConnection.cpp:43:3 (clickhouse+0x1f45d442) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 Poco::Net::TCPServerDispatcher::run() build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115:20 (clickhouse+0x1f45dcba) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #22 Poco::PooledThread::run() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:188:14 (clickhouse+0x1f6b5446) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #23 Poco::(anonymous namespace)::RunnableHolder::run() build_docker/./base/poco/Foundation/src/Thread.cpp:45:11 (clickhouse+0x1f6b372f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 Poco::ThreadImpl::runnableEntry(void*) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:335:27 (clickhouse+0x1f6b1ce9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Previous read of size 1 at 0x7b540000ebcf by thread T255 (mutexes: write M0): #0 std::__1::basic_string, std::__1::allocator>::__is_long[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/string:1499:33 (clickhouse+0xfad7042) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::basic_string, std::__1::allocator>::basic_string(std::__1::basic_string, std::__1::allocator> const&) build_docker/./contrib/llvm-project/libcxx/include/string:2012:16 (clickhouse+0xfad7042) #2 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1::operator()() const build_docker/./programs/server/Server.cpp:762:60 (clickhouse+0xfad7042) #3 decltype(std::declval, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>()()) std::__1::__invoke[abi:v15000], std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfad7042) #4 std::__1::vector> std::__1::__invoke_void_return_wrapper>, false>::__call, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&>(DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:470:16 (clickhouse+0xfad7042) #5 std::__1::__function::__default_alloc_func, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfad7042) #6 std::__1::vector> std::__1::__function::__policy_invoker> ()>::__call_impl, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&)::$_1, std::__1::vector> ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfad7042) #7 std::__1::__function::__policy_func> ()>::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb8e1b7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 std::__1::function> ()>::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb8e1b7) #9 DB::AsynchronousMetrics::update(std::__1::chrono::time_point>>) build_docker/./src/Common/AsynchronousMetrics.cpp:1549:37 (clickhouse+0xfb8e1b7) #10 DB::AsynchronousMetrics::run() build_docker/./src/Common/AsynchronousMetrics.cpp:354:13 (clickhouse+0xfb90796) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 DB::AsynchronousMetrics::start()::$_0::operator()() const build_docker/./src/Common/AsynchronousMetrics.cpp:273:62 (clickhouse+0xfb92e6a) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 decltype(std::declval()()) std::__1::__invoke[abi:v15000](DB::AsynchronousMetrics::start()::$_0&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #13 decltype(auto) std::__1::__apply_tuple_impl[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/tuple:1789:1 (clickhouse+0xfb92e6a) #14 decltype(auto) std::__1::apply[abi:v15000]&>(DB::AsynchronousMetrics::start()::$_0&, std::__1::tuple<>&) build_docker/./contrib/llvm-project/libcxx/include/tuple:1798:1 (clickhouse+0xfb92e6a) #15 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()::operator()() build_docker/./src/Common/ThreadPool.h:242:13 (clickhouse+0xfb92e6a) #16 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb92e6a) #17 void std::__1::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'()&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:479:9 (clickhouse+0xfb92e6a) #18 std::__1::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:235:12 (clickhouse+0xfb92e6a) #19 void std::__1::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:716:16 (clickhouse+0xfb92e6a) #20 std::__1::__function::__policy_func::operator()[abi:v15000]() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:848:16 (clickhouse+0xfb12826) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #21 std::__1::function::operator()() const build_docker/./contrib/llvm-project/libcxx/include/__functional/function.h:1187:12 (clickhouse+0xfb12826) #22 ThreadPoolImpl::worker(std::__1::__list_iterator) build_docker/./src/Common/ThreadPool.cpp:426:13 (clickhouse+0xfb12826) #23 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()::operator()() const build_docker/./src/Common/ThreadPool.cpp:179:73 (clickhouse+0xfb189d1) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #24 decltype(std::declval()()) std::__1::__invoke[abi:v15000]::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(void&&) build_docker/./contrib/llvm-project/libcxx/include/__functional/invoke.h:394:23 (clickhouse+0xfb189d1) #25 void std::__1::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>(std::__1::tuple::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) build_docker/./contrib/llvm-project/libcxx/include/thread:284:5 (clickhouse+0xfb189d1) #26 void* std::__1::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'()>>(void*) build_docker/./contrib/llvm-project/libcxx/include/thread:295:5 (clickhouse+0xfb189d1) Location is heap block of size 640 at 0x7b540000eb00 allocated by main thread: #0 operator new(unsigned long) (clickhouse+0x7c82f47) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 void* std::__1::__libcpp_operator_new[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:246:10 (clickhouse+0xfae27da) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::__libcpp_allocate[abi:v15000](unsigned long, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/new:272:10 (clickhouse+0xfae27da) #3 std::__1::allocator::allocate[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:112:38 (clickhouse+0xfae27da) #4 std::__1::allocator::allocate_at_least[abi:v15000](unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocator.h:119:17 (clickhouse+0xfae27da) #5 std::__1::allocation_result>::pointer> std::__1::allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:33:20 (clickhouse+0xfae27da) #6 auto std::__1::__allocate_at_least[abi:v15000]>(std::__1::allocator&, unsigned long) build_docker/./contrib/llvm-project/libcxx/include/__memory/allocate_at_least.h:42:10 (clickhouse+0xfae27da) #7 std::__1::__split_buffer&>::__split_buffer(unsigned long, unsigned long, std::__1::allocator&) build_docker/./contrib/llvm-project/libcxx/include/__split_buffer:316:29 (clickhouse+0xfae27da) #8 void std::__1::vector>::__push_back_slow_path(DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1535:49 (clickhouse+0xfae27da) #9 std::__1::vector>::push_back[abi:v15000](DB::ProtocolServerAdapter&&) build_docker/./contrib/llvm-project/libcxx/include/vector:1567:9 (clickhouse+0xfaad4c7) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::createServer(Poco::Util::AbstractConfiguration&, std::__1::basic_string, std::__1::allocator> const&, char const*, bool, bool, std::__1::vector>&, std::__1::function&&) const build_docker/./programs/server/Server.cpp:319:17 (clickhouse+0xfaad4c7) #11 DB::Server::createServers(Poco::Util::AbstractConfiguration&, std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&, bool, Poco::ThreadPool&, DB::AsynchronousMetrics&, std::__1::vector>&, bool, DB::ServerType const&) build_docker/./programs/server/Server.cpp:2234:13 (clickhouse+0xfacbf31) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1815:13 (clickhouse+0xfac1b8b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #14 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #15 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #16 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #17 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Mutex M0 (0x7ffd9bec1d88) created at: #0 pthread_mutex_lock (clickhouse+0x7bfd31b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_mutex_lock[abi:v15000](pthread_mutex_t*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:304:10 (clickhouse+0x23330cb9) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::mutex::lock() build_docker/./contrib/llvm-project/libcxx/src/mutex.cpp:38:14 (clickhouse+0x23330cb9) #3 std::__1::lock_guard::lock_guard[abi:v15000](std::__1::mutex&) build_docker/./contrib/llvm-project/libcxx/include/__mutex_base:94:27 (clickhouse+0xfabe419) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1510:25 (clickhouse+0xfabe419) #5 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T4 'TCPHandler' (tid=11, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 Poco::ThreadImpl::startImpl(Poco::SharedPtr>) build_docker/./base/poco/Foundation/src/Thread_POSIX.cpp:198:6 (clickhouse+0x1f6b16bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 Poco::Thread::start(Poco::Runnable&) build_docker/./base/poco/Foundation/src/Thread.cpp:118:2 (clickhouse+0x1f6b318f) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #3 Poco::PooledThread::start() build_docker/./base/poco/Foundation/src/ThreadPool.cpp:78:10 (clickhouse+0x1f6b5992) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 Poco::ThreadPool::ThreadPool(int, int, int, int) build_docker/./base/poco/Foundation/src/ThreadPool.cpp:237:12 (clickhouse+0x1f6b5992) #5 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:742:22 (clickhouse+0xfab36e4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #7 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #8 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) Thread T255 'AsyncMetrics' (tid=262, running) created by main thread at: #0 pthread_create (clickhouse+0x7bfb68b) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #1 std::__1::__libcpp_thread_create[abi:v15000](unsigned long*, void* (*)(void*), void*) build_docker/./contrib/llvm-project/libcxx/include/__threading_support:376:10 (clickhouse+0xfb1809e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #2 std::__1::thread::thread::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool)::'lambda0'(), void>(void&&) build_docker/./contrib/llvm-project/libcxx/include/thread:311:16 (clickhouse+0xfb1809e) #3 void ThreadPoolImpl::scheduleImpl(std::__1::function, Priority, std::__1::optional, bool) build_docker/./src/Common/ThreadPool.cpp:179:35 (clickhouse+0xfb10161) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #4 ThreadPoolImpl::scheduleOrThrow(std::__1::function, Priority, unsigned long, bool) build_docker/./src/Common/ThreadPool.cpp:249:5 (clickhouse+0xfb10d56) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #5 ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./src/Common/ThreadPool.h:222:38 (clickhouse+0xfb7fde4) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #6 std::__1::__unique_if>::__unique_single std::__1::make_unique[abi:v15000], DB::AsynchronousMetrics::start()::$_0>(DB::AsynchronousMetrics::start()::$_0&&) build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32 (clickhouse+0xfb7fde4) #7 DB::AsynchronousMetrics::start() build_docker/./src/Common/AsynchronousMetrics.cpp:273:14 (clickhouse+0xfb7fde4) #8 DB::Server::main(std::__1::vector, std::__1::allocator>, std::__1::allocator, std::__1::allocator>>> const&) build_docker/./programs/server/Server.cpp:1832:23 (clickhouse+0xfac1d02) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #9 Poco::Util::Application::run() build_docker/./base/poco/Util/src/Application.cpp:315:8 (clickhouse+0x1f47671e) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #10 DB::Server::run() build_docker/./programs/server/Server.cpp:395:25 (clickhouse+0xfaae5bf) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #11 Poco::Util::ServerApplication::run(int, char**) build_docker/./base/poco/Util/src/ServerApplication.cpp:131:9 (clickhouse+0x1f495f34) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #12 mainEntryClickHouseServer(int, char**) build_docker/./programs/server/Server.cpp:201:20 (clickhouse+0xfaab783) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) #13 main build_docker/./programs/main.cpp:492:12 (clickhouse+0x7c84c97) (BuildId: ef3cfa8d3ecab648fb040a1ac5d8430cf685a2a2) SUMMARY: ThreadSanitizer: data race build_docker/./contrib/llvm-project/libcxx/include/string:1570:37 in std::__1::basic_string, std::__1::allocator>::__set_short_size[abi:v15000](unsigned long) ================== ThreadSanitizer: reported 26 warnings (cluster.py:3054, shutdown) 2024-09-24 00:56:21 [ 409 ] DEBUG : Command:['bash', '-c', '[ -f /ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/backup_node/logs/stderr.log ] && zgrep -aH "==================" /ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/backup_node/logs/stderr.log* || true'] (cluster.py:105, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Command:['docker-compose', '--env-file', '/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/.env', '--project-name', 'roottestsystemstartstoplisten', '--file', '/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/main_node/docker-compose.yml', '--file', '/compose/docker_compose_keeper.yml', '--file', '/ClickHouse/tests/integration/test_system_start_stop_listen/_instances_0/backup_node/docker-compose.yml', 'down', '--volumes'] (cluster.py:105, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stderr:Removing roottestsystemstartstoplisten_backup_node_1 ... (cluster.py:115, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stderr:Removing roottestsystemstartstoplisten_main_node_1 ... (cluster.py:115, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stderr:Removing roottestsystemstartstoplisten_zoo3_1 ... (cluster.py:115, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stderr:Removing roottestsystemstartstoplisten_zoo1_1 ... (cluster.py:115, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stderr:Removing roottestsystemstartstoplisten_zoo2_1 ... (cluster.py:115, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stderr:Removing roottestsystemstartstoplisten_backup_node_1 ... done (cluster.py:115, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stderr:Removing roottestsystemstartstoplisten_zoo2_1 ... done (cluster.py:115, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stderr:Removing roottestsystemstartstoplisten_main_node_1 ... done (cluster.py:115, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stderr:Removing roottestsystemstartstoplisten_zoo3_1 ... done (cluster.py:115, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stderr:Removing roottestsystemstartstoplisten_zoo1_1 ... done (cluster.py:115, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stderr:Removing network roottestsystemstartstoplisten_default (cluster.py:115, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Cleanup called (cluster.py:754, cleanup) 2024-09-24 00:56:21 [ 409 ] DEBUG : !!! Docker info: Client: Docker Engine - Community Version: 27.2.1 Context: default Debug Mode: false Plugins: buildx: Docker Buildx (Docker Inc.) Version: v0.16.2 Path: /usr/libexec/docker/cli-plugins/docker-buildx compose: Docker Compose (Docker Inc.) Version: v2.29.2 Path: /usr/libexec/docker/cli-plugins/docker-compose Server: Containers: 15 Running: 15 Paused: 0 Stopped: 0 Images: 38 Server Version: 23.0.6 Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true Using metacopy: false Native Overlay Diff: true userxattr: false Logging Driver: json-file Cgroup Driver: cgroupfs Cgroup Version: 2 Plugins: Volume: local Network: bridge host ipvlan macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog Swarm: inactive Runtimes: io.containerd.runc.v2 runc Default Runtime: runc Init Binary: docker-init containerd version: 7f7fdf5fed64eb6a7caf99b3e12efcf9d60e311c runc version: v1.1.14-0-g2c9f560 init version: de40ad0 Security Options: seccomp Profile: builtin cgroupns Kernel Version: 5.15.0-119-generic Operating System: Ubuntu 22.04.5 LTS (containerized) OSType: linux Architecture: x86_64 CPUs: 16 Total Memory: 30.6GiB Name: 93a5f6f83021 ID: 13723ab1-db3d-4080-b6a4-499bd1da3a0d Docker Root Dir: /var/lib/docker Debug Mode: false Experimental: false Insecure Registries: 65.108.242.32:5000 127.0.0.0/8 Registry Mirrors: http://65.108.242.32:5000/ Live Restore Enabled: false Default Address Pools: Base: 172.17.0.0/12, Size: 24 (cluster.py:722, print_all_docker_pieces) 2024-09-24 00:56:21 [ 409 ] DEBUG : Docker networks for project roottestsystemstartstoplisten are NETWORK ID NAME DRIVER SCOPE (cluster.py:733, print_all_docker_pieces) 2024-09-24 00:56:21 [ 409 ] DEBUG : Docker containers for project roottestsystemstartstoplisten are CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES (cluster.py:741, print_all_docker_pieces) 2024-09-24 00:56:21 [ 409 ] DEBUG : Docker volumes for project roottestsystemstartstoplisten are DRIVER VOLUME NAME (cluster.py:749, print_all_docker_pieces) 2024-09-24 00:56:21 [ 409 ] DEBUG : Command:docker container list --all --filter name='^/roottestsystemstartstoplisten_.*_1$' --format '{{.ID}}:{{.Names}}' (cluster.py:105, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Unstopped containers: {} (cluster.py:768, cleanup) 2024-09-24 00:56:21 [ 409 ] DEBUG : No running containers for project: roottestsystemstartstoplisten (cluster.py:782, cleanup) 2024-09-24 00:56:21 [ 409 ] DEBUG : Trying to prune unused networks... (cluster.py:788, cleanup) 2024-09-24 00:56:21 [ 409 ] DEBUG : Trying to prune unused images... (cluster.py:804, cleanup) 2024-09-24 00:56:21 [ 409 ] DEBUG : Command:['docker', 'image', 'prune', '-f'] (cluster.py:105, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:Total reclaimed space: 0B (cluster.py:113, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Images pruned (cluster.py:807, cleanup) 2024-09-24 00:56:21 [ 409 ] DEBUG : Trying to prune unused volumes... (cluster.py:813, cleanup) 2024-09-24 00:56:21 [ 409 ] DEBUG : Command:['docker volume ls | wc -l'] (cluster.py:105, run_and_check) 2024-09-24 00:56:21 [ 409 ] DEBUG : Stdout:3 (cluster.py:113, run_and_check) ============================== slowest durations =============================== 99.39s call test_storage_s3/test.py::test_schema_inference_cache 35.28s setup test_storage_s3/test.py::test_multipart[positive] 31.42s call test_storage_s3/test.py::test_s3_glob_scheherazade 29.67s call test_system_start_stop_listen/test.py::test_all_protocols 28.46s call test_ttl_move/test.py::test_merges_to_disk_work[mt_test_merges_to_disk_do_not_work1] 28.27s call test_ttl_move/test.py::test_merges_to_disk_work[mt_test_merges_to_disk_work] 28.26s call test_ttl_move/test.py::test_merges_to_disk_work[replicated_mt_test_merges_to_disk_work] 28.11s call test_ttl_move/test.py::test_merges_to_disk_work[mt_test_merges_to_disk_do_not_work0] 28.03s call test_storage_s3/test.py::test_put_get_with_globs 27.08s call test_ttl_move/test.py::test_moves_after_merges_work[replicated_mt_test_moves_after_merges_do_not_work] 27.03s call test_tmp_policy/test.py::test_disk_selection 26.98s call test_ttl_move/test.py::test_moves_after_merges_work[replicated_mt_test_moves_after_merges_work] 26.96s call test_storage_s3/test.py::test_s3_schema_inference 26.84s call test_ttl_move/test.py::test_moves_after_merges_work[mt_test_moves_after_merges_do_not_work] 26.79s call test_ttl_move/test.py::test_moves_after_merges_work[mt_test_moves_after_merges_work] 26.36s call test_storage_s3/test.py::test_put_with_zero_redirect 23.58s setup test_ttl_move/test.py::test_alter_multiple_ttls[negative] 23.53s teardown test_system_start_stop_listen/test.py::test_except 23.04s call test_ttl_move/test.py::test_moves_to_disk_work[replicated_mt_test_moves_to_disk_do_not_work] 22.93s call test_ttl_move/test.py::test_moves_to_disk_work[replicated_mt_test_moves_to_disk_work] 22.93s call test_ttl_move/test.py::test_moves_to_disk_work[mt_test_moves_to_disk_do_not_work] 22.86s teardown test_storage_s3/test.py::test_wrong_s3_syntax 22.84s call test_ttl_move/test.py::test_moves_to_disk_work[mt_test_moves_to_disk_work] 22.82s call test_ttl_move/test.py::test_concurrent_alter_with_ttl_move[mt] 21.74s setup test_system_start_stop_listen/test.py::test_all_protocols 21.60s call test_ttl_move/test.py::test_concurrent_alter_with_ttl_move[replicated_mt] 21.07s call test_ttl_move/test.py::test_alter_multiple_ttls[replicated_positive] 20.67s call test_ttl_move/test.py::test_alter_multiple_ttls[positive] 19.89s call test_ttl_move/test.py::test_alter_multiple_ttls[negative] 19.83s call test_ttl_move/test.py::test_alter_multiple_ttls[replicated_negative] 18.83s call test_storage_s3/test.py::test_select_columns 16.00s setup test_system_logs_comment/test.py::test_system_logs_comment 15.67s setup test_tcp_handler_interserver_listen_host/test_case.py::test_request_to_node_with_interserver_listen_host 15.41s setup test_temporary_data/test.py::test_tmp_data_no_leftovers 15.40s setup test_tmp_policy/test.py::test_disk_selection 15.12s call test_ttl_move/test.py::test_alter_with_merge_work[replicated] 14.67s call test_ttl_move/test.py::test_merges_with_full_disk_work[replicated_mt_test_merges_with_full_disk_work] 14.57s call test_ttl_move/test.py::test_merges_with_full_disk_work[mt_test_merges_with_full_disk_work] 14.43s call test_ttl_move/test.py::test_alter_with_merge_work[mt_work] 14.38s call test_ttl_move/test.py::test_alter_with_merge_work[replicated_work] 14.18s call test_ttl_move/test.py::test_alter_with_merge_work[mt] 13.89s call test_ttl_move/test.py::test_moves_work_after_storage_policy_change[replicated_mt_test_moves_work_after_storage_policy_change] 13.85s call test_storage_s3/test.py::test_seekable_formats_url 13.65s call test_ttl_move/test.py::test_moves_work_after_storage_policy_change[mt_test_moves_work_after_storage_policy_change] 13.55s call test_storage_s3/test.py::test_seekable_formats 12.34s call test_ttl_move/test.py::test_moves_to_volume_work[replicated_mt_test_moves_to_volume_work] 11.90s call test_storage_s3/test.py::test_s3_list_objects_failure 11.84s call test_system_start_stop_listen/test.py::test_except 10.93s call test_ttl_move/test.py::test_moves_to_volume_work[mt_test_moves_to_volume_work] 9.52s call test_ttl_move/test.py::test_materialize_ttl_in_partition[replicated] 9.17s call test_ttl_move/test.py::test_materialize_ttl_in_partition[mt] 9.13s call test_temporary_data/test.py::test_tmp_data_no_leftovers 7.59s call test_system_start_stop_listen/test.py::test_default_protocols 6.43s call test_system_logs_comment/test.py::test_system_logs_comment 6.27s call test_storage_s3/test.py::test_skip_empty_files 6.00s call test_storage_s3/test.py::test_parallel_reading_with_memory_limit 5.47s teardown test_ttl_move/test.py::test_rule_with_invalid_destination[case3] 5.39s call test_ttl_move/test.py::test_disabled_ttl_move_on_insert[replicated_disk] 5.39s call test_ttl_move/test.py::test_disabled_ttl_move_on_insert[replicated_volume] 5.19s call test_ttl_move/test.py::test_disabled_ttl_move_on_insert[volume] 5.09s call test_ttl_move/test.py::test_rule_with_invalid_destination[case3] 5.09s call test_ttl_move/test.py::test_disabled_ttl_move_on_insert[disk] 4.78s call test_storage_s3/test.py::test_multipart[positive] 4.57s call test_ttl_move/test.py::test_moves_to_disk_eventually_work[replicated_mt_test_moves_to_disk_eventually_work] 4.49s call test_ttl_move/test.py::test_moves_to_disk_eventually_work[mt_test_moves_to_disk_eventually_work] 4.39s call test_ttl_move/test.py::test_rule_with_invalid_destination[case2] 4.20s teardown test_tcp_handler_interserver_listen_host/test_case.py::test_request_to_node_without_interserver_listen_host 4.10s call test_system_start_stop_listen/test.py::test_custom_protocols 3.93s call test_storage_s3/test.py::test_storage_s3_get_unstable 3.79s call test_storage_s3/test.py::test_schema_inference_from_globs 3.71s call test_storage_s3/test.py::test_predefined_connection_configuration 3.62s teardown test_tmp_policy/test.py::test_disk_selection 3.14s call test_ttl_move/test.py::test_replicated_download_ttl_info 2.86s call test_storage_s3/test.py::test_read_subcolumns 2.63s call test_storage_s3/test.py::test_signatures 2.31s call test_ttl_move/test.py::test_inserts_to_volume_work[replicated_mt_test_inserts_to_volume_do_not_work] 2.21s call test_ttl_move/test.py::test_inserts_to_volume_work[mt_test_inserts_to_volume_work] 2.21s call test_ttl_move/test.py::test_inserts_to_volume_work[replicated_mt_test_inserts_to_volume_work] 2.11s call test_ttl_move/test.py::test_inserts_to_volume_work[mt_test_inserts_to_volume_do_not_work] 2.09s teardown test_system_logs_comment/test.py::test_system_logs_comment 2.03s teardown test_temporary_data/test.py::test_tmp_data_no_leftovers 1.73s call test_ttl_move/test.py::test_inserts_to_disk_work[replicated_mt_test_inserts_to_disk_do_not_work] 1.63s call test_ttl_move/test.py::test_inserts_to_disk_work[replicated_mt_test_inserts_to_disk_work_1] 1.58s call test_storage_s3/test.py::test_wrong_format_usage 1.58s call test_ttl_move/test.py::test_inserts_to_disk_work[mt_test_inserts_to_disk_do_not_work] 1.57s call test_ttl_move/test.py::test_rule_with_invalid_destination[case0] 1.57s call test_ttl_move/test.py::test_rule_with_invalid_destination[case1] 1.49s call test_storage_s3/test.py::test_overwrite 1.48s call test_ttl_move/test.py::test_inserts_to_disk_work[mt_test_inserts_to_disk_work_1] 1.43s call test_storage_s3/test.py::test_truncate_table 1.00s call test_storage_s3/test.py::test_storage_s3_put_gzip[gz] 0.97s call test_storage_s3/test.py::test_storage_s3_get_gzip[gz] 0.97s call test_storage_s3/test.py::test_storage_s3_get_gzip[bin] 0.90s call test_storage_s3/test.py::test_storage_s3_put_gzip[bin] 0.80s call test_storage_s3/test.py::test_storage_s3_put_uncompressed 0.76s call test_storage_s3/test.py::test_partition_by 0.73s call test_storage_s3/test.py::test_remote_host_filter 0.64s call test_storage_s3/test.py::test_put_get_with_redirect 0.53s call test_storage_s3/test.py::test_wrong_s3_syntax 0.32s call test_storage_s3/test.py::test_put[auto] 0.27s call test_storage_s3/test.py::test_partition_by_string_column 0.27s call test_storage_s3/test.py::test_put_csv[positive] 0.27s call test_storage_s3/test.py::test_put_csv[auth_positive] 0.27s call test_storage_s3/test.py::test_partition_by_const_column 0.27s call test_storage_s3/test.py::test_put[auth_positive] 0.27s call test_storage_s3/test.py::test_put[positive] 0.27s call test_storage_s3/test.py::test_put_csv[negative] 0.27s call test_storage_s3/test.py::test_put[zstd] 0.27s call test_storage_s3/test.py::test_put[xz] 0.27s call test_storage_s3/test.py::test_put[deflate] 0.27s call test_storage_s3/test.py::test_put[brotli] 0.27s call test_storage_s3/test.py::test_put[gzip] 0.01s call test_tcp_handler_interserver_listen_host/test_case.py::test_request_to_node_with_interserver_listen_host 0.00s call test_tcp_handler_interserver_listen_host/test_case.py::test_request_to_node_without_interserver_listen_host 0.00s teardown test_storage_s3/test.py::test_s3_glob_scheherazade 0.00s teardown test_ttl_move/test.py::test_concurrent_alter_with_ttl_move[replicated_mt] 0.00s teardown test_ttl_move/test.py::test_concurrent_alter_with_ttl_move[mt] 0.00s setup test_ttl_move/test.py::test_moves_after_merges_work[replicated_mt_test_moves_after_merges_do_not_work] 0.00s teardown test_ttl_move/test.py::test_alter_multiple_ttls[negative] 0.00s setup test_ttl_move/test.py::test_alter_with_merge_work[mt] 0.00s setup test_ttl_move/test.py::test_inserts_to_disk_work[mt_test_inserts_to_disk_do_not_work] 0.00s setup test_storage_s3/test.py::test_storage_s3_get_gzip[gz] 0.00s teardown test_storage_s3/test.py::test_multipart[positive] 0.00s setup test_ttl_move/test.py::test_concurrent_alter_with_ttl_move[replicated_mt] 0.00s teardown test_system_start_stop_listen/test.py::test_all_protocols 0.00s setup test_storage_s3/test.py::test_truncate_table 0.00s setup test_ttl_move/test.py::test_alter_multiple_ttls[positive] 0.00s setup test_ttl_move/test.py::test_alter_with_merge_work[replicated] 0.00s setup test_ttl_move/test.py::test_rule_with_invalid_destination[case3] 0.00s setup test_ttl_move/test.py::test_moves_after_merges_work[mt_test_moves_after_merges_work] 0.00s setup test_ttl_move/test.py::test_moves_after_merges_work[replicated_mt_test_moves_after_merges_work] 0.00s setup test_ttl_move/test.py::test_inserts_to_volume_work[replicated_mt_test_inserts_to_volume_do_not_work] 0.00s setup test_ttl_move/test.py::test_disabled_ttl_move_on_insert[disk] 0.00s setup test_ttl_move/test.py::test_moves_to_disk_work[mt_test_moves_to_disk_work] 0.00s setup test_storage_s3/test.py::test_put_csv[negative] 0.00s setup test_ttl_move/test.py::test_merges_to_disk_work[replicated_mt_test_merges_to_disk_work] 0.00s teardown test_storage_s3/test.py::test_put_get_with_globs 0.00s setup test_storage_s3/test.py::test_storage_s3_put_gzip[bin] 0.00s setup test_ttl_move/test.py::test_inserts_to_disk_work[replicated_mt_test_inserts_to_disk_work_1] 0.00s setup test_ttl_move/test.py::test_moves_to_disk_work[replicated_mt_test_moves_to_disk_work] 0.00s setup test_storage_s3/test.py::test_put[xz] 0.00s setup test_storage_s3/test.py::test_put[brotli] 0.00s setup test_ttl_move/test.py::test_alter_with_merge_work[mt_work] 0.00s setup test_ttl_move/test.py::test_alter_multiple_ttls[replicated_negative] 0.00s setup test_ttl_move/test.py::test_merges_with_full_disk_work[mt_test_merges_with_full_disk_work] 0.00s setup test_ttl_move/test.py::test_merges_with_full_disk_work[replicated_mt_test_merges_with_full_disk_work] 0.00s setup test_storage_s3/test.py::test_put_get_with_globs 0.00s setup test_ttl_move/test.py::test_alter_with_merge_work[replicated_work] 0.00s setup test_ttl_move/test.py::test_inserts_to_disk_work[replicated_mt_test_inserts_to_disk_do_not_work] 0.00s setup test_ttl_move/test.py::test_moves_after_merges_work[mt_test_moves_after_merges_do_not_work] 0.00s setup test_storage_s3/test.py::test_put[zstd] 0.00s setup test_ttl_move/test.py::test_moves_to_disk_eventually_work[replicated_mt_test_moves_to_disk_eventually_work] 0.00s setup test_ttl_move/test.py::test_moves_to_volume_work[replicated_mt_test_moves_to_volume_work] 0.00s teardown test_ttl_move/test.py::test_moves_after_merges_work[mt_test_moves_after_merges_work] 0.00s setup test_storage_s3/test.py::test_storage_s3_get_gzip[bin] 0.00s setup test_ttl_move/test.py::test_inserts_to_volume_work[replicated_mt_test_inserts_to_volume_work] 0.00s teardown test_storage_s3/test.py::test_storage_s3_get_gzip[bin] 0.00s setup test_ttl_move/test.py::test_moves_to_volume_work[mt_test_moves_to_volume_work] 0.00s setup test_ttl_move/test.py::test_disabled_ttl_move_on_insert[volume] 0.00s teardown test_storage_s3/test.py::test_put_with_zero_redirect 0.00s setup test_ttl_move/test.py::test_inserts_to_disk_work[mt_test_inserts_to_disk_work_1] 0.00s setup test_storage_s3/test.py::test_put[gzip] 0.00s setup test_ttl_move/test.py::test_moves_work_after_storage_policy_change[mt_test_moves_work_after_storage_policy_change] 0.00s setup test_ttl_move/test.py::test_alter_multiple_ttls[replicated_positive] 0.00s teardown test_ttl_move/test.py::test_alter_multiple_ttls[replicated_positive] 0.00s setup test_ttl_move/test.py::test_merges_to_disk_work[mt_test_merges_to_disk_do_not_work1] 0.00s setup test_storage_s3/test.py::test_schema_inference_cache 0.00s setup test_ttl_move/test.py::test_disabled_ttl_move_on_insert[replicated_disk] 0.00s setup test_ttl_move/test.py::test_moves_work_after_storage_policy_change[replicated_mt_test_moves_work_after_storage_policy_change] 0.00s setup test_ttl_move/test.py::test_rule_with_invalid_destination[case0] 0.00s setup test_storage_s3/test.py::test_read_subcolumns 0.00s teardown test_ttl_move/test.py::test_moves_after_merges_work[replicated_mt_test_moves_after_merges_do_not_work] 0.00s setup test_ttl_move/test.py::test_disabled_ttl_move_on_insert[replicated_volume] 0.00s setup test_ttl_move/test.py::test_moves_to_disk_eventually_work[mt_test_moves_to_disk_eventually_work] 0.00s setup test_ttl_move/test.py::test_concurrent_alter_with_ttl_move[mt] 0.00s setup test_ttl_move/test.py::test_inserts_to_volume_work[mt_test_inserts_to_volume_work] 0.00s setup test_storage_s3/test.py::test_put[deflate] 0.00s setup test_system_start_stop_listen/test.py::test_default_protocols 0.00s setup test_ttl_move/test.py::test_inserts_to_volume_work[mt_test_inserts_to_volume_do_not_work] 0.00s setup test_ttl_move/test.py::test_rule_with_invalid_destination[case1] 0.00s setup test_ttl_move/test.py::test_merges_to_disk_work[mt_test_merges_to_disk_do_not_work0] 0.00s teardown test_storage_s3/test.py::test_put[auto] 0.00s setup test_ttl_move/test.py::test_moves_to_disk_work[replicated_mt_test_moves_to_disk_do_not_work] 0.00s setup test_ttl_move/test.py::test_rule_with_invalid_destination[case2] 0.00s setup test_ttl_move/test.py::test_materialize_ttl_in_partition[mt] 0.00s setup test_storage_s3/test.py::test_skip_empty_files 0.00s setup test_storage_s3/test.py::test_put[auth_positive] 0.00s teardown test_ttl_move/test.py::test_moves_to_volume_work[mt_test_moves_to_volume_work] 0.00s setup test_storage_s3/test.py::test_storage_s3_put_uncompressed 0.00s setup test_storage_s3/test.py::test_put[auto] 0.00s teardown test_ttl_move/test.py::test_alter_with_merge_work[mt_work] 0.00s setup test_storage_s3/test.py::test_storage_s3_put_gzip[gz] 0.00s teardown test_ttl_move/test.py::test_alter_with_merge_work[replicated_work] 0.00s setup test_ttl_move/test.py::test_materialize_ttl_in_partition[replicated] 0.00s setup test_ttl_move/test.py::test_merges_to_disk_work[mt_test_merges_to_disk_work] 0.00s teardown test_storage_s3/test.py::test_storage_s3_put_gzip[gz] 0.00s teardown test_ttl_move/test.py::test_alter_with_merge_work[mt] 0.00s setup test_storage_s3/test.py::test_put[positive] 0.00s setup test_ttl_move/test.py::test_moves_to_disk_work[mt_test_moves_to_disk_do_not_work] 0.00s teardown test_ttl_move/test.py::test_merges_with_full_disk_work[mt_test_merges_with_full_disk_work] 0.00s teardown test_storage_s3/test.py::test_signatures 0.00s setup test_storage_s3/test.py::test_put_get_with_redirect 0.00s setup test_storage_s3/test.py::test_schema_inference_from_globs 0.00s teardown test_storage_s3/test.py::test_put[positive] 0.00s setup test_ttl_move/test.py::test_replicated_download_ttl_info 0.00s setup test_storage_s3/test.py::test_put_csv[auth_positive] 0.00s setup test_tcp_handler_interserver_listen_host/test_case.py::test_request_to_node_without_interserver_listen_host 0.00s teardown test_ttl_move/test.py::test_inserts_to_disk_work[mt_test_inserts_to_disk_work_1] 0.00s teardown test_storage_s3/test.py::test_wrong_format_usage 0.00s teardown test_ttl_move/test.py::test_moves_to_disk_work[mt_test_moves_to_disk_do_not_work] 0.00s teardown test_ttl_move/test.py::test_inserts_to_volume_work[mt_test_inserts_to_volume_work] 0.00s setup test_storage_s3/test.py::test_put_csv[positive] 0.00s teardown test_storage_s3/test.py::test_put_csv[positive] 0.00s teardown test_storage_s3/test.py::test_put[xz] 0.00s teardown test_ttl_move/test.py::test_moves_to_disk_work[replicated_mt_test_moves_to_disk_do_not_work] 0.00s teardown test_ttl_move/test.py::test_merges_to_disk_work[replicated_mt_test_merges_to_disk_work] 0.00s teardown test_ttl_move/test.py::test_moves_after_merges_work[replicated_mt_test_moves_after_merges_work] 0.00s teardown test_ttl_move/test.py::test_merges_to_disk_work[mt_test_merges_to_disk_work] 0.00s setup test_storage_s3/test.py::test_parallel_reading_with_memory_limit 0.00s setup test_storage_s3/test.py::test_storage_s3_get_unstable 0.00s setup test_storage_s3/test.py::test_wrong_s3_syntax 0.00s teardown test_ttl_move/test.py::test_disabled_ttl_move_on_insert[disk] 0.00s teardown test_ttl_move/test.py::test_moves_to_disk_eventually_work[mt_test_moves_to_disk_eventually_work] 0.00s teardown test_ttl_move/test.py::test_moves_work_after_storage_policy_change[replicated_mt_test_moves_work_after_storage_policy_change] 0.00s setup test_storage_s3/test.py::test_seekable_formats_url 0.00s teardown test_ttl_move/test.py::test_moves_after_merges_work[mt_test_moves_after_merges_do_not_work] 0.00s teardown test_ttl_move/test.py::test_moves_to_disk_work[replicated_mt_test_moves_to_disk_work] 0.00s teardown test_ttl_move/test.py::test_disabled_ttl_move_on_insert[replicated_volume] 0.00s teardown test_storage_s3/test.py::test_schema_inference_cache 0.00s setup test_storage_s3/test.py::test_wrong_format_usage 0.00s teardown test_ttl_move/test.py::test_alter_with_merge_work[replicated] 0.00s teardown test_storage_s3/test.py::test_storage_s3_put_gzip[bin] 0.00s setup test_storage_s3/test.py::test_remote_host_filter 0.00s setup test_storage_s3/test.py::test_partition_by_string_column 0.00s teardown test_storage_s3/test.py::test_schema_inference_from_globs 0.00s setup test_storage_s3/test.py::test_seekable_formats 0.00s teardown test_ttl_move/test.py::test_merges_to_disk_work[mt_test_merges_to_disk_do_not_work0] 0.00s teardown test_ttl_move/test.py::test_moves_work_after_storage_policy_change[mt_test_moves_work_after_storage_policy_change] 0.00s teardown test_storage_s3/test.py::test_skip_empty_files 0.00s teardown test_storage_s3/test.py::test_read_subcolumns 0.00s teardown test_ttl_move/test.py::test_disabled_ttl_move_on_insert[replicated_disk] 0.00s teardown test_storage_s3/test.py::test_s3_schema_inference 0.00s teardown test_storage_s3/test.py::test_put_csv[negative] 0.00s teardown test_ttl_move/test.py::test_moves_to_volume_work[replicated_mt_test_moves_to_volume_work] 0.00s teardown test_ttl_move/test.py::test_merges_with_full_disk_work[replicated_mt_test_merges_with_full_disk_work] 0.00s teardown test_ttl_move/test.py::test_inserts_to_disk_work[mt_test_inserts_to_disk_do_not_work] 0.00s teardown test_ttl_move/test.py::test_alter_multiple_ttls[positive] 0.00s teardown test_ttl_move/test.py::test_merges_to_disk_work[mt_test_merges_to_disk_do_not_work1] 0.00s setup test_storage_s3/test.py::test_partition_by 0.00s teardown test_storage_s3/test.py::test_put_csv[auth_positive] 0.00s teardown test_ttl_move/test.py::test_inserts_to_disk_work[replicated_mt_test_inserts_to_disk_do_not_work] 0.00s setup test_storage_s3/test.py::test_put_with_zero_redirect 0.00s teardown test_storage_s3/test.py::test_put[deflate] 0.00s setup test_storage_s3/test.py::test_predefined_connection_configuration 0.00s teardown test_ttl_move/test.py::test_rule_with_invalid_destination[case1] 0.00s teardown test_ttl_move/test.py::test_rule_with_invalid_destination[case2] 0.00s teardown test_storage_s3/test.py::test_put[brotli] 0.00s setup test_storage_s3/test.py::test_partition_by_const_column 0.00s teardown test_ttl_move/test.py::test_rule_with_invalid_destination[case0] 0.00s teardown test_storage_s3/test.py::test_s3_list_objects_failure 0.00s teardown test_storage_s3/test.py::test_partition_by_const_column 0.00s teardown test_ttl_move/test.py::test_inserts_to_volume_work[replicated_mt_test_inserts_to_volume_do_not_work] 0.00s setup test_storage_s3/test.py::test_s3_list_objects_failure 0.00s teardown test_ttl_move/test.py::test_alter_multiple_ttls[replicated_negative] 0.00s setup test_storage_s3/test.py::test_s3_glob_scheherazade 0.00s teardown test_storage_s3/test.py::test_truncate_table 0.00s setup test_storage_s3/test.py::test_signatures 0.00s setup test_storage_s3/test.py::test_select_columns 0.00s teardown test_ttl_move/test.py::test_disabled_ttl_move_on_insert[volume] 0.00s setup test_system_start_stop_listen/test.py::test_custom_protocols 0.00s setup test_storage_s3/test.py::test_s3_schema_inference 0.00s setup test_storage_s3/test.py::test_overwrite 0.00s teardown test_ttl_move/test.py::test_moves_to_disk_work[mt_test_moves_to_disk_work] 0.00s teardown test_ttl_move/test.py::test_inserts_to_volume_work[mt_test_inserts_to_volume_do_not_work] 0.00s teardown test_storage_s3/test.py::test_put[auth_positive] 0.00s teardown test_ttl_move/test.py::test_inserts_to_volume_work[replicated_mt_test_inserts_to_volume_work] 0.00s teardown test_ttl_move/test.py::test_moves_to_disk_eventually_work[replicated_mt_test_moves_to_disk_eventually_work] 0.00s teardown test_ttl_move/test.py::test_inserts_to_disk_work[replicated_mt_test_inserts_to_disk_work_1] 0.00s teardown test_tcp_handler_interserver_listen_host/test_case.py::test_request_to_node_with_interserver_listen_host 0.00s teardown test_storage_s3/test.py::test_predefined_connection_configuration 0.00s teardown test_storage_s3/test.py::test_storage_s3_get_gzip[gz] 0.00s teardown test_storage_s3/test.py::test_put[gzip] 0.00s setup test_system_start_stop_listen/test.py::test_except 0.00s teardown test_storage_s3/test.py::test_put[zstd] 0.00s teardown test_ttl_move/test.py::test_replicated_download_ttl_info 0.00s teardown test_ttl_move/test.py::test_materialize_ttl_in_partition[replicated] 0.00s teardown test_ttl_move/test.py::test_materialize_ttl_in_partition[mt] 0.00s teardown test_storage_s3/test.py::test_parallel_reading_with_memory_limit 0.00s teardown test_storage_s3/test.py::test_seekable_formats 0.00s teardown test_storage_s3/test.py::test_remote_host_filter 0.00s teardown test_storage_s3/test.py::test_select_columns 0.00s teardown test_storage_s3/test.py::test_put_get_with_redirect 0.00s teardown test_storage_s3/test.py::test_storage_s3_put_uncompressed 0.00s teardown test_storage_s3/test.py::test_partition_by_string_column 0.00s teardown test_storage_s3/test.py::test_partition_by 0.00s teardown test_storage_s3/test.py::test_seekable_formats_url 0.00s teardown test_system_start_stop_listen/test.py::test_custom_protocols 0.00s teardown test_system_start_stop_listen/test.py::test_default_protocols 0.00s teardown test_storage_s3/test.py::test_overwrite 0.00s teardown test_storage_s3/test.py::test_storage_s3_get_unstable =========================== short test summary info ============================ ERROR test_system_start_stop_listen/test.py::test_except - Exception: Sanitiz... PASSED test_tcp_handler_interserver_listen_host/test_case.py::test_request_to_node_with_interserver_listen_host PASSED test_tcp_handler_interserver_listen_host/test_case.py::test_request_to_node_without_interserver_listen_host PASSED test_system_logs_comment/test.py::test_system_logs_comment PASSED test_temporary_data/test.py::test_tmp_data_no_leftovers PASSED test_storage_s3/test.py::test_multipart[positive] PASSED test_storage_s3/test.py::test_overwrite PASSED test_tmp_policy/test.py::test_disk_selection PASSED test_ttl_move/test.py::test_alter_multiple_ttls[negative] PASSED test_storage_s3/test.py::test_parallel_reading_with_memory_limit PASSED test_storage_s3/test.py::test_partition_by PASSED test_storage_s3/test.py::test_partition_by_const_column PASSED test_storage_s3/test.py::test_partition_by_string_column PASSED test_system_start_stop_listen/test.py::test_all_protocols PASSED test_storage_s3/test.py::test_predefined_connection_configuration PASSED test_storage_s3/test.py::test_put[auth_positive] PASSED test_storage_s3/test.py::test_put[auto] PASSED test_storage_s3/test.py::test_put[brotli] PASSED test_storage_s3/test.py::test_put[deflate] PASSED test_storage_s3/test.py::test_put[gzip] PASSED test_storage_s3/test.py::test_put[positive] PASSED test_storage_s3/test.py::test_put[xz] PASSED test_storage_s3/test.py::test_put[zstd] PASSED test_storage_s3/test.py::test_put_csv[auth_positive] PASSED test_storage_s3/test.py::test_put_csv[negative] PASSED test_system_start_stop_listen/test.py::test_custom_protocols PASSED test_storage_s3/test.py::test_put_csv[positive] PASSED test_system_start_stop_listen/test.py::test_default_protocols PASSED test_ttl_move/test.py::test_alter_multiple_ttls[positive] PASSED test_system_start_stop_listen/test.py::test_except PASSED test_storage_s3/test.py::test_put_get_with_globs PASSED test_ttl_move/test.py::test_alter_multiple_ttls[replicated_negative] PASSED test_storage_s3/test.py::test_put_get_with_redirect PASSED test_ttl_move/test.py::test_alter_multiple_ttls[replicated_positive] PASSED test_storage_s3/test.py::test_put_with_zero_redirect PASSED test_storage_s3/test.py::test_read_subcolumns PASSED test_storage_s3/test.py::test_remote_host_filter PASSED test_ttl_move/test.py::test_alter_with_merge_work[mt] PASSED test_ttl_move/test.py::test_alter_with_merge_work[mt_work] PASSED test_storage_s3/test.py::test_s3_glob_scheherazade PASSED test_ttl_move/test.py::test_alter_with_merge_work[replicated] PASSED test_storage_s3/test.py::test_s3_list_objects_failure PASSED test_ttl_move/test.py::test_alter_with_merge_work[replicated_work] PASSED test_storage_s3/test.py::test_s3_schema_inference PASSED test_ttl_move/test.py::test_concurrent_alter_with_ttl_move[mt] PASSED test_ttl_move/test.py::test_concurrent_alter_with_ttl_move[replicated_mt] PASSED test_ttl_move/test.py::test_disabled_ttl_move_on_insert[disk] PASSED test_ttl_move/test.py::test_disabled_ttl_move_on_insert[replicated_disk] PASSED test_ttl_move/test.py::test_disabled_ttl_move_on_insert[replicated_volume] PASSED test_ttl_move/test.py::test_disabled_ttl_move_on_insert[volume] PASSED test_ttl_move/test.py::test_inserts_to_disk_work[mt_test_inserts_to_disk_do_not_work] PASSED test_ttl_move/test.py::test_inserts_to_disk_work[mt_test_inserts_to_disk_work_1] PASSED test_ttl_move/test.py::test_inserts_to_disk_work[replicated_mt_test_inserts_to_disk_do_not_work] PASSED test_ttl_move/test.py::test_inserts_to_disk_work[replicated_mt_test_inserts_to_disk_work_1] PASSED test_ttl_move/test.py::test_inserts_to_volume_work[mt_test_inserts_to_volume_do_not_work] PASSED test_ttl_move/test.py::test_inserts_to_volume_work[mt_test_inserts_to_volume_work] PASSED test_ttl_move/test.py::test_inserts_to_volume_work[replicated_mt_test_inserts_to_volume_do_not_work] PASSED test_ttl_move/test.py::test_inserts_to_volume_work[replicated_mt_test_inserts_to_volume_work] PASSED test_ttl_move/test.py::test_materialize_ttl_in_partition[mt] PASSED test_ttl_move/test.py::test_materialize_ttl_in_partition[replicated] PASSED test_storage_s3/test.py::test_schema_inference_cache PASSED test_storage_s3/test.py::test_schema_inference_from_globs PASSED test_ttl_move/test.py::test_merges_to_disk_work[mt_test_merges_to_disk_do_not_work0] PASSED test_storage_s3/test.py::test_seekable_formats PASSED test_storage_s3/test.py::test_seekable_formats_url PASSED test_ttl_move/test.py::test_merges_to_disk_work[mt_test_merges_to_disk_do_not_work1] PASSED test_storage_s3/test.py::test_select_columns PASSED test_storage_s3/test.py::test_signatures PASSED test_storage_s3/test.py::test_skip_empty_files PASSED test_storage_s3/test.py::test_storage_s3_get_gzip[bin] PASSED test_storage_s3/test.py::test_storage_s3_get_gzip[gz] PASSED test_ttl_move/test.py::test_merges_to_disk_work[mt_test_merges_to_disk_work] PASSED test_storage_s3/test.py::test_storage_s3_get_unstable PASSED test_storage_s3/test.py::test_storage_s3_put_gzip[bin] PASSED test_storage_s3/test.py::test_storage_s3_put_gzip[gz] PASSED test_storage_s3/test.py::test_storage_s3_put_uncompressed PASSED test_storage_s3/test.py::test_truncate_table PASSED test_storage_s3/test.py::test_wrong_format_usage PASSED test_storage_s3/test.py::test_wrong_s3_syntax PASSED test_ttl_move/test.py::test_merges_to_disk_work[replicated_mt_test_merges_to_disk_work] PASSED test_ttl_move/test.py::test_merges_with_full_disk_work[mt_test_merges_with_full_disk_work] PASSED test_ttl_move/test.py::test_merges_with_full_disk_work[replicated_mt_test_merges_with_full_disk_work] PASSED test_ttl_move/test.py::test_moves_after_merges_work[mt_test_moves_after_merges_do_not_work] PASSED test_ttl_move/test.py::test_moves_after_merges_work[mt_test_moves_after_merges_work] PASSED test_ttl_move/test.py::test_moves_after_merges_work[replicated_mt_test_moves_after_merges_do_not_work] PASSED test_ttl_move/test.py::test_moves_after_merges_work[replicated_mt_test_moves_after_merges_work] PASSED test_ttl_move/test.py::test_moves_to_disk_eventually_work[mt_test_moves_to_disk_eventually_work] PASSED test_ttl_move/test.py::test_moves_to_disk_eventually_work[replicated_mt_test_moves_to_disk_eventually_work] PASSED test_ttl_move/test.py::test_moves_to_disk_work[mt_test_moves_to_disk_do_not_work] PASSED test_ttl_move/test.py::test_moves_to_disk_work[mt_test_moves_to_disk_work] PASSED test_ttl_move/test.py::test_moves_to_disk_work[replicated_mt_test_moves_to_disk_do_not_work] PASSED test_ttl_move/test.py::test_moves_to_disk_work[replicated_mt_test_moves_to_disk_work] PASSED test_ttl_move/test.py::test_moves_to_volume_work[mt_test_moves_to_volume_work] PASSED test_ttl_move/test.py::test_moves_to_volume_work[replicated_mt_test_moves_to_volume_work] PASSED test_ttl_move/test.py::test_moves_work_after_storage_policy_change[mt_test_moves_work_after_storage_policy_change] PASSED test_ttl_move/test.py::test_moves_work_after_storage_policy_change[replicated_mt_test_moves_work_after_storage_policy_change] PASSED test_ttl_move/test.py::test_replicated_download_ttl_info PASSED test_ttl_move/test.py::test_rule_with_invalid_destination[case0] PASSED test_ttl_move/test.py::test_rule_with_invalid_destination[case1] PASSED test_ttl_move/test.py::test_rule_with_invalid_destination[case2] PASSED test_ttl_move/test.py::test_rule_with_invalid_destination[case3] =================== 100 passed, 1 error in 686.95s (0:11:26) =================== Traceback (most recent call last): File "/home/ubuntu/_work/_temp/test/git-repo-copy/tests/integration/./runner", line 455, in subprocess.check_call(cmd, shell=True) File "/usr/lib/python3.10/subprocess.py", line 369, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command 'docker run --rm --name clickhouse_integration_tests_jppsc5 --privileged --dns-search='.' --volume=/home/ubuntu/_work/_temp/test/build/clickhouse-odbc-bridge:/clickhouse-odbc-bridge --volume=/home/ubuntu/_work/_temp/test/build/clickhouse:/clickhouse --volume=/home/ubuntu/_work/_temp/test/build/clickhouse-library-bridge:/clickhouse-library-bridge --volume=/home/ubuntu/_work/_temp/test/git-repo-copy/programs/server:/clickhouse-config --volume=/home/ubuntu/_work/_temp/test/git-repo-copy/tests/integration:/ClickHouse/tests/integration --volume=/home/ubuntu/_work/_temp/test/git-repo-copy/src/Server/grpc_protos:/ClickHouse/src/Server/grpc_protos --volume=/run:/run/host:ro --mount type=bind,source=/home/ubuntu/_work/_temp/test/dockerd_volume_dir,target=/var/lib/docker -e DOCKER_HELPER_TAG=0-9992f5eba3591142ff413d31cb83a7bf4f0e2553 -e DOCKER_BASE_TAG=0-9992f5eba3591142ff413d31cb83a7bf4f0e2553 -e DOCKER_KERBERIZED_HADOOP_TAG=0-9992f5eba3591142ff413d31cb83a7bf4f0e2553 -e DOCKER_KERBEROS_KDC_TAG=0-9992f5eba3591142ff413d31cb83a7bf4f0e2553 -e DOCKER_MYSQL_GOLANG_CLIENT_TAG=0-9992f5eba3591142ff413d31cb83a7bf4f0e2553 -e DOCKER_MYSQL_JAVA_CLIENT_TAG=0-9992f5eba3591142ff413d31cb83a7bf4f0e2553 -e DOCKER_MYSQL_JS_CLIENT_TAG=0-9992f5eba3591142ff413d31cb83a7bf4f0e2553 -e DOCKER_MYSQL_PHP_CLIENT_TAG=0-9992f5eba3591142ff413d31cb83a7bf4f0e2553 -e DOCKER_NGINX_DAV_TAG=0-9992f5eba3591142ff413d31cb83a7bf4f0e2553 -e DOCKER_POSTGRESQL_JAVA_CLIENT_TAG=0-9992f5eba3591142ff413d31cb83a7bf4f0e2553 -e DOCKER_CLIENT_TIMEOUT=300 -e COMPOSE_HTTP_TIMEOUT=600 -e PYTHONUNBUFFERED=1 -e PYTEST_ADDOPTS="--dist=loadfile -n 10 -rfEps --run-id=0 --color=no --durations=0 'test_storage_s3/test.py::test_multipart[positive]' test_storage_s3/test.py::test_overwrite test_storage_s3/test.py::test_parallel_reading_with_memory_limit test_storage_s3/test.py::test_partition_by test_storage_s3/test.py::test_partition_by_const_column test_storage_s3/test.py::test_partition_by_string_column test_storage_s3/test.py::test_predefined_connection_configuration 'test_storage_s3/test.py::test_put[auth_positive]' 'test_storage_s3/test.py::test_put[auto]' 'test_storage_s3/test.py::test_put[brotli]' 'test_storage_s3/test.py::test_put[deflate]' 'test_storage_s3/test.py::test_put[gzip]' 'test_storage_s3/test.py::test_put[positive]' 'test_storage_s3/test.py::test_put[xz]' 'test_storage_s3/test.py::test_put[zstd]' 'test_storage_s3/test.py::test_put_csv[auth_positive]' 'test_storage_s3/test.py::test_put_csv[negative]' 'test_storage_s3/test.py::test_put_csv[positive]' test_storage_s3/test.py::test_put_get_with_globs test_storage_s3/test.py::test_put_get_with_redirect test_storage_s3/test.py::test_put_with_zero_redirect test_storage_s3/test.py::test_read_subcolumns test_storage_s3/test.py::test_remote_host_filter test_storage_s3/test.py::test_s3_glob_scheherazade test_storage_s3/test.py::test_s3_list_objects_failure test_storage_s3/test.py::test_s3_schema_inference test_storage_s3/test.py::test_schema_inference_cache test_storage_s3/test.py::test_schema_inference_from_globs test_storage_s3/test.py::test_seekable_formats test_storage_s3/test.py::test_seekable_formats_url test_storage_s3/test.py::test_select_columns test_storage_s3/test.py::test_signatures test_storage_s3/test.py::test_skip_empty_files 'test_storage_s3/test.py::test_storage_s3_get_gzip[bin]' 'test_storage_s3/test.py::test_storage_s3_get_gzip[gz]' test_storage_s3/test.py::test_storage_s3_get_unstable 'test_storage_s3/test.py::test_storage_s3_put_gzip[bin]' 'test_storage_s3/test.py::test_storage_s3_put_gzip[gz]' test_storage_s3/test.py::test_storage_s3_put_uncompressed test_storage_s3/test.py::test_truncate_table test_storage_s3/test.py::test_wrong_format_usage test_storage_s3/test.py::test_wrong_s3_syntax test_system_logs_comment/test.py::test_system_logs_comment test_system_start_stop_listen/test.py::test_all_protocols test_system_start_stop_listen/test.py::test_custom_protocols test_system_start_stop_listen/test.py::test_default_protocols test_system_start_stop_listen/test.py::test_except test_tcp_handler_interserver_listen_host/test_case.py::test_request_to_node_with_interserver_listen_host test_tcp_handler_interserver_listen_host/test_case.py::test_request_to_node_without_interserver_listen_host test_temporary_data/test.py::test_tmp_data_no_leftovers test_tmp_policy/test.py::test_disk_selection 'test_ttl_move/test.py::test_alter_multiple_ttls[negative]' 'test_ttl_move/test.py::test_alter_multiple_ttls[positive]' 'test_ttl_move/test.py::test_alter_multiple_ttls[replicated_negative]' 'test_ttl_move/test.py::test_alter_multiple_ttls[replicated_positive]' 'test_ttl_move/test.py::test_alter_with_merge_work[mt]' 'test_ttl_move/test.py::test_alter_with_merge_work[mt_work]' 'test_ttl_move/test.py::test_alter_with_merge_work[replicated]' 'test_ttl_move/test.py::test_alter_with_merge_work[replicated_work]' 'test_ttl_move/test.py::test_concurrent_alter_with_ttl_move[mt]' 'test_ttl_move/test.py::test_concurrent_alter_with_ttl_move[replicated_mt]' 'test_ttl_move/test.py::test_disabled_ttl_move_on_insert[disk]' 'test_ttl_move/test.py::test_disabled_ttl_move_on_insert[replicated_disk]' 'test_ttl_move/test.py::test_disabled_ttl_move_on_insert[replicated_volume]' 'test_ttl_move/test.py::test_disabled_ttl_move_on_insert[volume]' 'test_ttl_move/test.py::test_inserts_to_disk_work[mt_test_inserts_to_disk_do_not_work]' 'test_ttl_move/test.py::test_inserts_to_disk_work[mt_test_inserts_to_disk_work_1]' 'test_ttl_move/test.py::test_inserts_to_disk_work[replicated_mt_test_inserts_to_disk_do_not_work]' 'test_ttl_move/test.py::test_inserts_to_disk_work[replicated_mt_test_inserts_to_disk_work_1]' 'test_ttl_move/test.py::test_inserts_to_volume_work[mt_test_inserts_to_volume_do_not_work]' 'test_ttl_move/test.py::test_inserts_to_volume_work[mt_test_inserts_to_volume_work]' 'test_ttl_move/test.py::test_inserts_to_volume_work[replicated_mt_test_inserts_to_volume_do_not_work]' 'test_ttl_move/test.py::test_inserts_to_volume_work[replicated_mt_test_inserts_to_volume_work]' 'test_ttl_move/test.py::test_materialize_ttl_in_partition[mt]' 'test_ttl_move/test.py::test_materialize_ttl_in_partition[replicated]' 'test_ttl_move/test.py::test_merges_to_disk_work[mt_test_merges_to_disk_do_not_work0]' 'test_ttl_move/test.py::test_merges_to_disk_work[mt_test_merges_to_disk_do_not_work1]' 'test_ttl_move/test.py::test_merges_to_disk_work[mt_test_merges_to_disk_work]' 'test_ttl_move/test.py::test_merges_to_disk_work[replicated_mt_test_merges_to_disk_work]' 'test_ttl_move/test.py::test_merges_with_full_disk_work[mt_test_merges_with_full_disk_work]' 'test_ttl_move/test.py::test_merges_with_full_disk_work[replicated_mt_test_merges_with_full_disk_work]' 'test_ttl_move/test.py::test_moves_after_merges_work[mt_test_moves_after_merges_do_not_work]' 'test_ttl_move/test.py::test_moves_after_merges_work[mt_test_moves_after_merges_work]' 'test_ttl_move/test.py::test_moves_after_merges_work[replicated_mt_test_moves_after_merges_do_not_work]' 'test_ttl_move/test.py::test_moves_after_merges_work[replicated_mt_test_moves_after_merges_work]' 'test_ttl_move/test.py::test_moves_to_disk_eventually_work[mt_test_moves_to_disk_eventually_work]' 'test_ttl_move/test.py::test_moves_to_disk_eventually_work[replicated_mt_test_moves_to_disk_eventually_work]' 'test_ttl_move/test.py::test_moves_to_disk_work[mt_test_moves_to_disk_do_not_work]' 'test_ttl_move/test.py::test_moves_to_disk_work[mt_test_moves_to_disk_work]' 'test_ttl_move/test.py::test_moves_to_disk_work[replicated_mt_test_moves_to_disk_do_not_work]' 'test_ttl_move/test.py::test_moves_to_disk_work[replicated_mt_test_moves_to_disk_work]' 'test_ttl_move/test.py::test_moves_to_volume_work[mt_test_moves_to_volume_work]' 'test_ttl_move/test.py::test_moves_to_volume_work[replicated_mt_test_moves_to_volume_work]' 'test_ttl_move/test.py::test_moves_work_after_storage_policy_change[mt_test_moves_work_after_storage_policy_change]' 'test_ttl_move/test.py::test_moves_work_after_storage_policy_change[replicated_mt_test_moves_work_after_storage_policy_change]' test_ttl_move/test.py::test_replicated_download_ttl_info 'test_ttl_move/test.py::test_rule_with_invalid_destination[case0]' 'test_ttl_move/test.py::test_rule_with_invalid_destination[case1]' 'test_ttl_move/test.py::test_rule_with_invalid_destination[case2]' 'test_ttl_move/test.py::test_rule_with_invalid_destination[case3]' -vvv" altinityinfra/integration-tests-runner:0-9992f5eba3591142ff413d31cb83a7bf4f0e2553 ' returned non-zero exit status 1.